]> Gentwo Git Trees - linux/.git/commit
btrfs: exit early when replaying hole file extent item from a log tree
authorFilipe Manana <fdmanana@suse.com>
Mon, 21 Jul 2025 11:54:48 +0000 (12:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:30 +0000 (10:54 +0200)
commit88666b6df97ec3ac8e6522584bec4963cf7ce6f8
tree368e7ed22e3e55bd10aa4feb117df325f2c34eb1
parent912c257c88cd8c9a466a3cf702912a03a979fd06
btrfs: exit early when replaying hole file extent item from a log tree

At replay_one_extent(), we can jump to the code that updates the file
extent range and updates the inode when processing a file extent item that
represents a hole and we don't have the NO_HOLES feature enabled. This
helps reduce the high indentation level by one in replay_one_extent() and
avoid splitting some lines to make the code easier to read.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c