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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:17 +0000 (20:14 +0000)
commitd91ecb894aedef67b37f3df0a8da26409969ed44
tree44e446f5584120ba03632c0881595d2069aca93f
parent69c7eeb4f622c2a28da965f970f982db171f3dc6
ext4: treat end of range as exclusive in ext4_zero_range()

[ Upstream commit 92573369144f40397e8514440afdf59f24905b40 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/extents.c