linux-stable/fs/udf
Jan Kara fe80a53eab udf: Fix off-by-one error when discarding preallocation
[ Upstream commit f54aa97fb7 ]

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: 16d0556568 ("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:45:07 +01:00
..
balloc.c
dir.c udf: Fix crash after seekdir 2021-11-26 10:39:20 +01:00
directory.c
ecma_167.h
file.c udf: Do not update file length for failed writes to inline files 2023-03-11 16:39:57 +01:00
ialloc.c udf: Fix error handling in udf_new_inode() 2022-01-27 10:54:23 +01:00
inode.c udf: Fix off-by-one error when discarding preallocation 2023-03-17 08:45:07 +01:00
Kconfig
lowlevel.c
Makefile
misc.c udf_get_extendedattr() had no boundary checks. 2021-09-15 09:50:27 +02:00
namei.c udf: Avoid double brelse() in udf_rename() 2023-01-14 10:16:13 +01:00
osta_udf.h
partition.c
super.c udf: Preserve link count of system files 2023-03-11 16:39:57 +01:00
symlink.c
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2022-12-21 17:32:06 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-11 16:39:57 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-11 16:39:48 +01:00
udfdecl.h
udfend.h
udftime.c
unicode.c udf: Fix iocharset=utf8 mount option 2021-09-15 09:50:25 +02:00