]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make caching_thread use btrfs_find_next_key
authorJosef Bacik <josef@toxicpanda.com>
Thu, 20 Jun 2019 19:37:52 +0000 (15:37 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:05 +0000 (14:59 +0200)
commit99c9f2695d18c0557334d289334c57ffce5fa53c
tree615404bf2f4b8c5dc6e6a5222455da95a4933227
parent9f4e7a2115f2db34b2960f8c2145bcc46e48ac48
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>
fs/btrfs/ctree.c
fs/btrfs/extent-tree.c