udf: Fix directory iteration for longer tail extents
authorJan Kara <jack@suse.cz>
Wed, 25 Jan 2023 10:43:03 +0000 (11:43 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Jan 2023 15:46:32 +0000 (16:46 +0100)
commit1ea1cd11c72d1405a6b98440a9d5ea82dfa07166
tree649829990ea476dc16f4817b5c2b3134a9a9e0a2
parentee454ad2fce7baa272fc0a69f93d47013ea06b07
udf: Fix directory iteration for longer tail extents

When directory's last extent has more that one block and its length is
not multiple of a block side, the code wrongly decided to move to the
next extent instead of processing the last partial block. This led to
directory corruption. Fix the rounding issue.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/directory.c