]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ext4: treat end of range as exclusive in ext4_zero_range()
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Wed, 1 Nov 2023 16:38:10 +0000 (22:08 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 5 Jan 2024 04:28:47 +0000 (23:28 -0500)
commit92573369144f40397e8514440afdf59f24905b40
treed0a4b5659a24155aec389248e65130368a330fca
parente89fdcc425b6feea4dfb33877e9256757905d763
ext4: treat end of range as exclusive in ext4_zero_range()

The call to filemap_write_and_wait_range() assumes the range passed to be
inclusive, so fix the call to make sure we follow that.

Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/e503107a7c73a2b68dec645c5ad798c437717c45.1698856309.git.ojaswin@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c