linux-stable/fs/udf
Jan Kara 70b9184394 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:57:49 +01:00
..
Kconfig
Makefile
balloc.c
dir.c udf: replace ll_rw_block() 2022-09-11 20:26:07 -07:00
directory.c udf: replace ll_rw_block() 2022-09-11 20:26:07 -07:00
ecma_167.h udf: Get rid of 0-length arrays in struct fileIdentDesc 2021-08-11 16:54:44 +02:00
file.c udf: Do not update file length for failed writes to inline files 2023-03-10 09:29:32 +01:00
ialloc.c udf: Fix error handling in udf_new_inode() 2021-12-15 13:08:34 +01:00
inode.c udf: Fix off-by-one error when discarding preallocation 2023-03-17 08:57:49 +01:00
lowlevel.c udf: use sb_bdev_nr_blocks 2021-10-18 14:43:23 -06:00
misc.c udf_get_extendedattr() had no boundary checks. 2021-08-23 13:35:19 +02:00
namei.c \n 2022-12-12 20:32:50 -08:00
osta_udf.h udf: Get rid of 0-length arrays 2021-08-11 16:54:44 +02:00
partition.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
super.c udf: Preserve link count of system files 2023-03-10 09:29:32 +01:00
symlink.c udf: Convert adinicb and symlinks to read_folio 2022-05-09 16:21:46 -04:00
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2022-12-09 12:37:26 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-10 09:29:32 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-10 09:29:04 +01:00
udfdecl.h udf: Get rid of 0-length arrays in struct fileIdentDesc 2021-08-11 16:54:44 +02:00
udfend.h
udftime.c
unicode.c udf: Fix iocharset=utf8 mount option 2021-08-12 16:07:09 +02:00