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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:30:09 +0000 (10:30 +0200)
commit96881521121269d444791474dab3ec54c07a05fa
tree02e135006164cc195b07c5615cbfc0c50403e1dd
parent7697ca60db067845d83d4b7d31e04678592649e5
btrfs: remove no longer needed logic for replaying directory deletes

[ Upstream commit ccae4a19c9140a34a0c5f0658812496dd8bbdeaf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/tree-log.c
include/uapi/linux/btrfs_tree.h