diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-20 21:37:52 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:05 +0200 |
commit | 6a9fb468f1152d6254f49fee6ac28c3cfa3367e5 (patch) | |
tree | 615404bf2f4b8c5dc6e6a5222455da95a4933227 /fs/btrfs/extent-tree.c | |
parent | btrfs: temporarily export fragment_free_space (diff) | |
download | linux-6a9fb468f1152d6254f49fee6ac28c3cfa3367e5.tar.xz linux-6a9fb468f1152d6254f49fee6ac28c3cfa3367e5.zip |
btrfs: make caching_thread use btrfs_find_next_key
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>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 6cae152a4812..3348f9a4e15c 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -331,7 +331,7 @@ next: 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; |