diff options
| author | Filipe Manana <fdmanana@suse.com> | 2021-10-25 17:31:54 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-05 10:30:09 +0200 |
| commit | 96881521121269d444791474dab3ec54c07a05fa (patch) | |
| tree | 02e135006164cc195b07c5615cbfc0c50403e1dd /include | |
| parent | 7697ca60db067845d83d4b7d31e04678592649e5 (diff) | |
| download | linux-96881521121269d444791474dab3ec54c07a05fa.tar.gz linux-96881521121269d444791474dab3ec54c07a05fa.tar.bz2 linux-96881521121269d444791474dab3ec54c07a05fa.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/btrfs_tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h index e1c4c732aaba..5416f1f1a77a 100644 --- a/include/uapi/linux/btrfs_tree.h +++ b/include/uapi/linux/btrfs_tree.h @@ -146,7 +146,9 @@ /* * dir items are the name -> inode pointers in a directory. There is one - * for every name in a directory. + * for every name in a directory. BTRFS_DIR_LOG_ITEM_KEY is no longer used + * but it's still defined here for documentation purposes and to help avoid + * having its numerical value reused in the future. */ #define BTRFS_DIR_LOG_ITEM_KEY 60 #define BTRFS_DIR_LOG_INDEX_KEY 72 |
