summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2016-06-10 03:38:35 +0200
committerDavid Sterba <dsterba@suse.com>2016-07-26 13:53:16 +0200
commit3cdde2240d4533ff71fbb8dc9c32d5d57d3cdeed (patch)
tree05a138f31bd51026ecb338cd8720bfbf5f863b25 /fs/btrfs/file.c
parentbtrfs: prefix fsid to all trace events (diff)
downloadlinux-3cdde2240d4533ff71fbb8dc9c32d5d57d3cdeed.tar.xz
linux-3cdde2240d4533ff71fbb8dc9c32d5d57d3cdeed.zip
btrfs: btrfs_test_opt and friends should take a btrfs_fs_info
btrfs_test_opt and friends only use the root pointer to access the fs_info. Let's pass the fs_info directly in preparation to eliminate similar patterns all over btrfs. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 38bea7bb0987..48b94904a519 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -132,7 +132,7 @@ static int __btrfs_add_inode_defrag(struct inode *inode,
static inline int __need_auto_defrag(struct btrfs_root *root)
{
- if (!btrfs_test_opt(root, AUTO_DEFRAG))
+ if (!btrfs_test_opt(root->fs_info, AUTO_DEFRAG))
return 0;
if (btrfs_fs_closing(root->fs_info))