btrfs: add helper to delete a dir entry from a log tree
authorFilipe Manana <fdmanana@suse.com>
Thu, 20 Jan 2022 11:00:06 +0000 (11:00 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2022 12:13:47 +0000 (13:13 +0100)
commit839061fe88beacb911bbb9412d18db3e61160e4f
tree3234f9194cc1ad22b2404f670fa6d88215e24f6c
parent0292ecf19b353e255be93afa133955c3cd78f784
btrfs: add helper to delete a dir entry from a log tree

Move the code that finds and deletes a logged dir entry out of
btrfs_del_dir_entries_in_log() into a helper function. This new helper
function will be used by another patch in the same series, and serves
to avoid having duplicated logic.

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