]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add and use helper for unlinking inode during log replay
authorFilipe Manana <fdmanana@suse.com>
Mon, 28 Feb 2022 16:29:29 +0000 (16:29 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2022 12:13:53 +0000 (13:13 +0100)
commitceb615c682252c37c585a5361429c5415832af71
tree811d8b90b7f8bdfbc37ab2c98dcee9921029138a
parent603a60bf0a1cc2ad87625db8861512daf0c767cc
btrfs: add and use helper for unlinking inode during log replay

During log replay there is this pattern of running delayed items after
every inode unlink. To avoid repeating this several times, move the
logic into an helper function and use it instead of calling
btrfs_unlink_inode() followed by btrfs_run_delayed_items().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c