ACIL FM
Dark
Refresh
Current DIR:
/usr/src/kernels/5.14.0-427.31.1.el9_4.x86_64/include/linux/ceph
/
usr
src
kernels
5.14.0-427.31.1.el9_4.x86_64
include
linux
ceph
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
auth.h
6.59 MB
chmod
View
DL
Edit
Rename
Delete
buffer.h
833 B
chmod
View
DL
Edit
Rename
Delete
ceph_debug.h
907 B
chmod
View
DL
Edit
Rename
Delete
ceph_features.h
8.68 MB
chmod
View
DL
Edit
Rename
Delete
ceph_frag.h
1.97 MB
chmod
View
DL
Edit
Rename
Delete
ceph_fs.h
27.75 MB
chmod
View
DL
Edit
Rename
Delete
ceph_hash.h
472 B
chmod
View
DL
Edit
Rename
Delete
cls_lock_client.h
1.72 MB
chmod
View
DL
Edit
Rename
Delete
debugfs.h
362 B
chmod
View
DL
Edit
Rename
Delete
decode.h
9.93 MB
chmod
View
DL
Edit
Rename
Delete
libceph.h
10.28 MB
chmod
View
DL
Edit
Rename
Delete
mdsmap.h
1.78 MB
chmod
View
DL
Edit
Rename
Delete
messenger.h
18.07 MB
chmod
View
DL
Edit
Rename
Delete
mon_client.h
3.82 MB
chmod
View
DL
Edit
Rename
Delete
msgpool.h
811 B
chmod
View
DL
Edit
Rename
Delete
msgr.h
7.16 MB
chmod
View
DL
Edit
Rename
Delete
osdmap.h
9.06 MB
chmod
View
DL
Edit
Rename
Delete
osd_client.h
15.55 MB
chmod
View
DL
Edit
Rename
Delete
pagelist.h
1.92 MB
chmod
View
DL
Edit
Rename
Delete
rados.h
18.76 MB
chmod
View
DL
Edit
Rename
Delete
string_table.h
1.3 MB
chmod
View
DL
Edit
Rename
Delete
striper.h
1.74 MB
chmod
View
DL
Edit
Rename
Delete
types.h
558 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/src/kernels/5.14.0-427.31.1.el9_4.x86_64/include/linux/ceph/ceph_frag.h
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef FS_CEPH_FRAG_H #define FS_CEPH_FRAG_H /* * "Frags" are a way to describe a subset of a 32-bit number space, * using a mask and a value to match against that mask. Any given frag * (subset of the number space) can be partitioned into 2^n sub-frags. * * Frags are encoded into a 32-bit word: * 8 upper bits = "bits" * 24 lower bits = "value" * (We could go to 5+27 bits, but who cares.) * * We use the _most_ significant bits of the 24 bit value. This makes * values logically sort. * * Unfortunately, because the "bits" field is still in the high bits, we * can't sort encoded frags numerically. However, it does allow you * to feed encoded frags as values into frag_contains_value. */ static inline __u32 ceph_frag_make(__u32 b, __u32 v) { return (b << 24) | (v & (0xffffffu << (24-b)) & 0xffffffu); } static inline __u32 ceph_frag_bits(__u32 f) { return f >> 24; } static inline __u32 ceph_frag_value(__u32 f) { return f & 0xffffffu; } static inline __u32 ceph_frag_mask(__u32 f) { return (0xffffffu << (24-ceph_frag_bits(f))) & 0xffffffu; } static inline __u32 ceph_frag_mask_shift(__u32 f) { return 24 - ceph_frag_bits(f); } static inline bool ceph_frag_contains_value(__u32 f, __u32 v) { return (v & ceph_frag_mask(f)) == ceph_frag_value(f); } static inline __u32 ceph_frag_make_child(__u32 f, int by, int i) { int newbits = ceph_frag_bits(f) + by; return ceph_frag_make(newbits, ceph_frag_value(f) | (i << (24 - newbits))); } static inline bool ceph_frag_is_leftmost(__u32 f) { return ceph_frag_value(f) == 0; } static inline bool ceph_frag_is_rightmost(__u32 f) { return ceph_frag_value(f) == ceph_frag_mask(f); } static inline __u32 ceph_frag_next(__u32 f) { return ceph_frag_make(ceph_frag_bits(f), ceph_frag_value(f) + (0x1000000 >> ceph_frag_bits(f))); } /* * comparator to sort frags logically, as when traversing the * number space in ascending order... */ int ceph_frag_compare(__u32 a, __u32 b); #endif
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply