Home
last modified time | relevance | path

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

/Linux-v6.6/fs/ceph/
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()
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()
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 …]
Dfile.c1691 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
1692 u64 read_len = CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
1719 if (read_len != CEPH_FSCRYPT_BLOCK_SIZE) { in ceph_sync_write()
1731 CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1750 last_pos, CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1764 CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1817 CEPH_FSCRYPT_BLOCK_SIZE) { in ceph_sync_write()
1832 CEPH_FSCRYPT_BLOCK_SIZE) { in ceph_sync_write()
1847 pages[0], CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1858 CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
Daddr.c646 ret = round_up(ret, CEPH_FSCRYPT_BLOCK_SIZE); in get_writepages_data_length()
707 wlen = IS_ENCRYPTED(inode) ? round_up(len, CEPH_FSCRYPT_BLOCK_SIZE) : len; in writepage_nounlock()
735 CEPH_FSCRYPT_BLOCK_SIZE, 0, in writepage_nounlock()
1289 len = round_up(len, CEPH_FSCRYPT_BLOCK_SIZE); in ceph_writepages_start()
Dcaps.c1260 CEPH_FSCRYPT_BLOCK_SIZE)); in encode_cap_msg()