]> git.baikalelectronics.ru Git - kernel.git/commit
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 11:02:34 +0000 (12:02 +0100)
commit41d32c7cb36f43a5f17f7eab5f912621727e0aa4
tree25713d815216e03dc4ac16a41cc59f14ca1cdfc8
parentc2dbd14a29f7505dd70402f7ccc8d6c4311af966
udf: Fix extension of the last extent in the file

[ Upstream commit 6bd4ceaacb0eda985596a99afd756e96026e3699 ]

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: a9cfa2bae782 ("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