udf: Fix preallocation discarding at indirect extent boundary
authorJan Kara <jack@suse.cz>
Wed, 7 Dec 2022 16:25:10 +0000 (17:25 +0100)
committerJan Kara <jack@suse.cz>
Fri, 9 Dec 2022 11:37:26 +0000 (12:37 +0100)
commitcfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3
treeb8b305f200343688327b0657d965be53585c5589
parent7868f93006ad27c00ecddcc2904118aa705459ca
udf: Fix preallocation discarding at indirect extent boundary

When preallocation extent is the first one in the extent block, the
code would corrupt extent tree header instead. Fix the problem and use
udf_delete_aext() for deleting extent to avoid some code duplication.

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