udf: Fix extension of the last extent in the file
authorJan Kara <jack@suse.cz>
Wed, 21 Dec 2022 16:45:51 +0000 (17:45 +0100)
committerJan Kara <jack@suse.cz>
Fri, 6 Jan 2023 14:44:07 +0000 (15:44 +0100)
commit83c7423d1eb6806d13c521d1002cc1a012111719
treef88fec02d7b2f94e649619ce7b1a0918834447a1
parent41c03ba9beea760bd2d2ac9250b09a2e192da2dc
udf: Fix extension of the last extent in the file

When extending the last extent in the file within the last block, we
wrongly computed the length of the last extent. This is mostly a
cosmetical problem since the extent does not contain any data and the
length will be fixed up by following operations but still.

Fixes: 1f3868f06855 ("udf: Fix extending file within last block")
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c