Jan Kara 31b5793ca2 udf: Fix off-by-one error when discarding preallocation
[ Upstream commit f54aa97fb7e5329a373f9df4e5e213ced4fc8759 ]

The condition determining whether the preallocation can be used had
an off-by-one error so we didn't discard preallocation when new
allocation was just following it. This can then confuse code in
inode_getblk().

CC: stable@vger.kernel.org
Fixes: 16d055656814 ("udf: Discard preallocation before extending file with a hole")
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-17 08:48:50 +01:00
..
2021-11-25 09:48:46 +01:00
2020-05-04 10:13:42 -06:00
2021-08-11 16:54:44 +02:00
2021-01-24 14:27:20 +01:00
2023-03-10 09:39:46 +01:00
2021-08-12 16:07:09 +02:00