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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:59:16 +0000 (11:59 +0100)
commit0dca7375e2b918d5b2e5604f654d57bbd26f98d6
treeea4b655fd6f91193154e6d9035f58a5d9eff25b4
parentdc1bc903970bdf63ca40ab923d3ccb765da9a8d9
udf: Fix extension of the last extent in the file

[ Upstream commit 83c7423d1eb6806d13c521d1002cc1a012111719 ]

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