MCPcopy Create free account
hub / github.com/ceph/ceph / fscrypt_align_ofs

Function fscrypt_align_ofs

src/client/FSCrypt.h:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#define FSCRYPT_MAXIO_SIZE fscrypt_block_start(INT_MAX)
29
30static inline uint64_t fscrypt_align_ofs(uint64_t ofs) {
31 return (ofs + FSCRYPT_DATA_ALIGNMENT - 1) & ~(FSCRYPT_DATA_ALIGNMENT - 1);
32}
33
34static inline int fscrypt_ofs_in_block(uint64_t pos) {
35 return pos & (FSCRYPT_BLOCK_SIZE - 1);

Callers 5

decryptMethod · 0.85
encryptMethod · 0.85
decrypt_blMethod · 0.85
encrypt_blMethod · 0.85
prepare_data_readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected