• Josef Bacik's avatar
    btrfs: make caching_thread use btrfs_find_next_key · 6a9fb468
    Josef Bacik authored
    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: default avatarJosef Bacik <josef@toxicpanda.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    6a9fb468
extent-tree.c 240 KB