mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 09:08:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
22
fs/ceph/ceph_frag.c
Normal file
22
fs/ceph/ceph_frag.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Ceph 'frag' type
|
||||
*/
|
||||
#include <linux/module.h>
|
||||
#include <linux/ceph/types.h>
|
||||
|
||||
int ceph_frag_compare(__u32 a, __u32 b)
|
||||
{
|
||||
unsigned va = ceph_frag_value(a);
|
||||
unsigned vb = ceph_frag_value(b);
|
||||
if (va < vb)
|
||||
return -1;
|
||||
if (va > vb)
|
||||
return 1;
|
||||
va = ceph_frag_bits(a);
|
||||
vb = ceph_frag_bits(b);
|
||||
if (va < vb)
|
||||
return -1;
|
||||
if (va > vb)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue