]> 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)
commit313ab75399d0c7d0ebc718c545572c1b4d8d22ef
tree811d8b90b7f8bdfbc37ab2c98dcee9921029138a
parent06bae876634ebf837ba70ea3de532b288326103d
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