]> 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)
commitf36156f9c7a61f8d6406589a73588fa0cc7b8078
tree811d8b90b7f8bdfbc37ab2c98dcee9921029138a
parentd719bd2a16ed97e0e47965b877884045a54e58ef
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