]> git.hungrycats.org Git - linux/commit
Btrfs: make get_caching_control unconditionally return the ctl
authorJosef Bacik <jbacik@fb.com>
Wed, 26 Nov 2014 16:52:54 +0000 (11:52 -0500)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:21:44 +0000 (08:21 -0500)
commitc105b7acdb7bf09724d35af9a89d364956a3f9c5
treefbc523cdef9d6afd8e39dc81c64644c4dfd33cb8
parent7811d3d144fbf926ef2dd2033b5f68f09b52460f
Btrfs: make get_caching_control unconditionally return the ctl

This was written when we didn't do a caching control for the fast free space
cache loading.  However we started doing that a long time ago, and there is
still a small window of time that we could be caching the block group the fast
way, so if there is a caching_ctl at all on the block group just return it, the
callers all wait properly for what they want.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit cb83b7b81698a4abe531e0ba18b9e288b06947ce)
fs/btrfs/extent-tree.c