OSDN Git Service

btrfs: remove no longer needed logic for replaying directory deletes
authorFilipe Manana <fdmanana@suse.com>
Mon, 25 Oct 2021 16:31:54 +0000 (17:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:42 +0000 (15:09 +0100)
commitccae4a19c9140a34a0c5f0658812496dd8bbdeaf
treef0def02500bfb1abf30bd5b23f95d08ccb105d6c
parent339d035424849c89fe29913d07b08b153596bfb8
btrfs: remove no longer needed logic for replaying directory deletes

Now that we log only dir index keys when logging a directory, we no longer
need to deal with dir item keys in the log replay code for replaying
directory deletes. This is also true for the case when we replay a log
tree created by a kernel that still logs dir items.

So remove the remaining code of the replay of directory deletes algorithm
that deals with dir item keys.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c
include/uapi/linux/btrfs_tree.h