aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2020-10-27 13:27:51 +0000
committerTheodore Ts'o <[email protected]>2020-10-28 17:42:42 +0000
commitb5b18160a3e7a9f55e3528d77051670cca6d9314 (patch)
tree7aeada62c004bbe8858a52f8a4d984ee7e2d4756 /fs/ext4/fast_commit.c
parentjbd2: fix a kernel-doc markup (diff)
downloadkernel-b5b18160a3e7a9f55e3528d77051670cca6d9314.tar.gz
kernel-b5b18160a3e7a9f55e3528d77051670cca6d9314.zip
ext4: fix mmap write protection for data=journal mode
Commit afb585a97f81 "ext4: data=journal: write-protect pages on j_submit_inode_data_buffers()") added calls ext4_jbd2_inode_add_write() to track inode ranges whose mappings need to get write-protected during transaction commits. However the added calls use wrong start of a range (0 instead of page offset) and so write protection is not necessarily effective. Use correct range start to fix the problem. Fixes: afb585a97f81 ("ext4: data=journal: write-protect pages on j_submit_inode_data_buffers()") Signed-off-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions