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)
committerJan Kara <jack@suse.cz>
Fri, 9 Dec 2022 11:37:26 +0000 (12:37 +0100)
commit6ad53f0f71c52871202a7bf096feb2c59db33fc5
tree376460330f798d0d8e30f320e1b4be8b83cb88d9
parentcfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3
udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size

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>
fs/udf/truncate.c