Home
last modified time | relevance | path

Searched refs:CEPH_FSCRYPT_BLOCK_SIZE (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/fs/ceph/
H A Dcrypto.h13 #define CEPH_FSCRYPT_BLOCK_SIZE (_AC(1, UL) << CEPH_FSCRYPT_BLOCK_SHIFT) macro
14 #define CEPH_FSCRYPT_BLOCK_MASK (~(CEPH_FSCRYPT_BLOCK_SIZE-1))
134 return ((off+len+CEPH_FSCRYPT_BLOCK_SIZE-1) >> CEPH_FSCRYPT_BLOCK_SHIFT) - in ceph_fscrypt_blocks()
148 *len = ceph_fscrypt_blocks(*off, *len) * CEPH_FSCRYPT_BLOCK_SIZE; in ceph_fscrypt_adjust_off_and_len()
H A Dcrypto.c557 CEPH_FSCRYPT_BLOCK_SIZE, pgoffs, in ceph_fscrypt_decrypt_pages()
564 ret += CEPH_FSCRYPT_BLOCK_SIZE; in ceph_fscrypt_decrypt_pages()
661 CEPH_FSCRYPT_BLOCK_SIZE, pgoffs, in ceph_fscrypt_encrypt_pages()
668 ret += CEPH_FSCRYPT_BLOCK_SIZE; in ceph_fscrypt_encrypt_pages()
H A Dinode.c1089 if (size == round_up(fsize, CEPH_FSCRYPT_BLOCK_SIZE)) { in ceph_fill_inode()
2295 int boff = attr->ia_size % CEPH_FSCRYPT_BLOCK_SIZE; in fill_fscrypt_truncate()
2297 CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2305 int len = CEPH_FSCRYPT_BLOCK_SIZE; in fill_fscrypt_truncate()
2360 header.block_size = cpu_to_le32(CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2380 header.data_len = cpu_to_le32(8 + 8 + 4 + CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2384 boff, CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2391 CEPH_FSCRYPT_BLOCK_SIZE, in fill_fscrypt_truncate()
2406 CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2582 (attr->ia_size % CEPH_FSCRYPT_BLOCK_SIZE)) { in __ceph_setattr()
[all …]
H A Dfile.c1697 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
1698 u64 read_len = CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
1725 if (read_len != CEPH_FSCRYPT_BLOCK_SIZE) { in ceph_sync_write()
1737 CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1756 last_pos, CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1770 CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1823 CEPH_FSCRYPT_BLOCK_SIZE) { in ceph_sync_write()
1838 CEPH_FSCRYPT_BLOCK_SIZE) { in ceph_sync_write()
1853 pages[0], CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1864 CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
H A Daddr.c650 ret = round_up(ret, CEPH_FSCRYPT_BLOCK_SIZE); in get_writepages_data_length()
711 wlen = IS_ENCRYPTED(inode) ? round_up(len, CEPH_FSCRYPT_BLOCK_SIZE) : len; in writepage_nounlock()
739 CEPH_FSCRYPT_BLOCK_SIZE, 0, in writepage_nounlock()
1295 len = round_up(len, CEPH_FSCRYPT_BLOCK_SIZE); in ceph_writepages_start()
H A Dcaps.c1261 CEPH_FSCRYPT_BLOCK_SIZE)); in encode_cap_msg()