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, 28 Feb 2022 15:19:48 +0000 (16:19 +0100)
commit4afe56d6d84942c637d341547fccaccb09e4b7ee
treee3f33d0ff0c2f74bcb76f9d9e78f3a575c63abe8
parent3134cba36edfa1b6a7ee2b4f73ccc44f6f30300e
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