]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Drop btrfs-make-caching_thread-use-btrfs_find_next_key.patch
authorSasha Levin <sashal@kernel.org>
Wed, 1 Jul 2020 01:11:49 +0000 (21:11 -0400)
committerSasha Levin <sashal@kernel.org>
Wed, 1 Jul 2020 01:11:49 +0000 (21:11 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.19/btrfs-make-caching_thread-use-btrfs_find_next_key.patch [deleted file]
queue-4.19/series

diff --git a/queue-4.19/btrfs-make-caching_thread-use-btrfs_find_next_key.patch b/queue-4.19/btrfs-make-caching_thread-use-btrfs_find_next_key.patch
deleted file mode 100644 (file)
index 89401cd..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-From a002fcae9fff7c24e61e106ccd983e2494eac478 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 20 Jun 2019 15:37:52 -0400
-Subject: btrfs: make caching_thread use btrfs_find_next_key
-
-From: Josef Bacik <josef@toxicpanda.com>
-
-[ Upstream commit 6a9fb468f1152d6254f49fee6ac28c3cfa3367e5 ]
-
-extent-tree.c has a find_next_key that just walks up the path to find
-the next key, but it is used for both the caching stuff and the snapshot
-delete stuff.  The snapshot deletion stuff is special so it can't really
-use btrfs_find_next_key, but the caching thread stuff can.  We just need
-to fix btrfs_find_next_key to deal with ->skip_locking and then it works
-exactly the same as the private find_next_key helper.
-
-Signed-off-by: Josef Bacik <josef@toxicpanda.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- fs/btrfs/ctree.c       | 4 ++--
- fs/btrfs/extent-tree.c | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
-index c9943d70e2cb2..d03944735ee42 100644
---- a/fs/btrfs/ctree.c
-+++ b/fs/btrfs/ctree.c
-@@ -5665,7 +5665,7 @@ int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
-       int slot;
-       struct extent_buffer *c;
--      WARN_ON(!path->keep_locks);
-+      WARN_ON(!path->keep_locks && !path->skip_locking);
-       while (level < BTRFS_MAX_LEVEL) {
-               if (!path->nodes[level])
-                       return 1;
-@@ -5681,7 +5681,7 @@ int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
-                           !path->nodes[level + 1])
-                               return 1;
--                      if (path->locks[level + 1]) {
-+                      if (path->locks[level + 1] || path->skip_locking) {
-                               level++;
-                               continue;
-                       }
-diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
-index 271e70c45d5bd..954e558c4380f 100644
---- a/fs/btrfs/extent-tree.c
-+++ b/fs/btrfs/extent-tree.c
-@@ -436,7 +436,7 @@ static int load_extent_tree_free(struct btrfs_caching_control *caching_ctl)
-               if (path->slots[0] < nritems) {
-                       btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
-               } else {
--                      ret = find_next_key(path, 0, &key);
-+                      ret = btrfs_find_next_key(extent_root, path, &key, 0, 0);
-                       if (ret)
-                               break;
--- 
-2.25.1
-
index 1f3d8e4cf7acb7e59b9a5a9c644e221b36ccdeae..2fcf6131de32693204e9e5ed76761f22de68f621 100644 (file)
@@ -8,7 +8,6 @@ edac-amd64-add-family-17h-model-30h-pci-ids.patch
 i2c-tegra-cleanup-kerneldoc-comments.patch
 i2c-tegra-add-missing-kerneldoc-for-some-fields.patch
 i2c-tegra-fix-maximum-transfer-size.patch
-btrfs-make-caching_thread-use-btrfs_find_next_key.patch
 fix-a-braino-in-sparc32-fix-register-window-handling.patch
 alsa-hda-realtek-enable-the-headset-of-asus-b9450fa-.patch
 alsa-hda-realtek-enable-mute-led-on-an-hp-system.patch