summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorSatoru Takeuchi2017-09-12 13:08:08 +0200
committerDavid Sterba2017-10-30 12:27:56 +0100
commitd8953d69bca83fab616f37693152384cea49f964 (patch)
tree40f60aceba0ed878d1464a996d5d901d5a6a0ad0 /fs/btrfs/extent-tree.c
parentbtrfs: avoid null pointer dereference on fs_info when calling btrfs_crit (diff)
downloadkernel-qcow2-linux-d8953d69bca83fab616f37693152384cea49f964.tar.gz
kernel-qcow2-linux-d8953d69bca83fab616f37693152384cea49f964.tar.xz
kernel-qcow2-linux-d8953d69bca83fab616f37693152384cea49f964.zip
btrfs: convert all mount option checking code to use btrfs_test_opt
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 18f8274b8e3b..eccaac17258d 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -640,7 +640,7 @@ static int cache_block_group(struct btrfs_block_group_cache *cache,
cache->cached = BTRFS_CACHE_FAST;
spin_unlock(&cache->lock);
- if (fs_info->mount_opt & BTRFS_MOUNT_SPACE_CACHE) {
+ if (btrfs_test_opt(fs_info, SPACE_CACHE)) {
mutex_lock(&caching_ctl->mutex);
ret = load_free_space_cache(fs_info, cache);