diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-04-25 15:51:28 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-04-25 15:51:28 -0700 |
| commit | 349b7d77f5a104cf4a81f5400184c6c446792bd3 (patch) | |
| tree | b796b6f8379c7c9e19157cf37eee1fa6e0e7c1f4 /fs/ceph | |
| parent | Merge tag 'cxl-fixes-6.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| parent | ceph: Fix incorrect flush end position calculation (diff) | |
| download | linux-349b7d77f5a104cf4a81f5400184c6c446792bd3.tar.gz linux-349b7d77f5a104cf4a81f5400184c6c446792bd3.zip | |
Merge tag 'ceph-for-6.15-rc4' of https://github.com/ceph/ceph-client
Pull ceph fixes from Ilya Dryomov:
"A small CephFS encryption-related fix and a dead code cleanup"
* tag 'ceph-for-6.15-rc4' of https://github.com/ceph/ceph-client:
ceph: Fix incorrect flush end position calculation
ceph: Remove osd_client deadcode
Diffstat (limited to 'fs/ceph')
| -rw-r--r-- | fs/ceph/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 6ac2bd555e86..06cd2963e41e 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2367,7 +2367,7 @@ static int fill_fscrypt_truncate(struct inode *inode, /* Try to writeback the dirty pagecaches */ if (issued & (CEPH_CAP_FILE_BUFFER)) { - loff_t lend = orig_pos + CEPH_FSCRYPT_BLOCK_SHIFT - 1; + loff_t lend = orig_pos + CEPH_FSCRYPT_BLOCK_SIZE - 1; ret = filemap_write_and_wait_range(inode->i_mapping, orig_pos, lend); |
