udf: Move incrementing of goal block directly into inode_getblk()
authorJan Kara <jack@suse.cz>
Wed, 18 Jan 2023 11:05:58 +0000 (12:05 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Jan 2023 15:46:33 +0000 (16:46 +0100)
commitde80dae03c436b43017dd5e479486f1f73fa6769
tree7a1f36be338ec9338fa87ade34d49d19a9734e81
parent101ee137d32adc5b53f5c2a61fbda8f70f994845
udf: Move incrementing of goal block directly into inode_getblk()

inode_getblk() sets goal block for the next allocation to the currently
allocated block. This is obviously one less than what the goal block
should be which we fixup in udf_get_block(). Just set the right goal
block directly in inode_getblk().

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