]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size
authorJan Kara <jack@suse.cz>
Wed, 7 Dec 2022 16:34:33 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:40:47 +0000 (11:40 +0100)
commit4dd1a3ef59cfe875f9d6c423c316da82697be71f
tree01224e17d473f2f93d0219e392d5c8b2a95dc34a
parent105ce8c8704a5cf8228ec00c749a679b28f61aa9
udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size

commit 6ad53f0f71c52871202a7bf096feb2c59db33fc5 upstream.

If rounded block-rounded i_lenExtents matches block rounded i_size,
there are no preallocation extents. Do not bother walking extent linked
list.

CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/udf/truncate.c