diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-09 21:38:35 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 07:53:16 -0400 |
commit | 3cdde2240d4533ff71fbb8dc9c32d5d57d3cdeed (patch) | |
tree | 05a138f31bd51026ecb338cd8720bfbf5f863b25 /fs/btrfs/dev-replace.c | |
parent | bc074524e123ded281cde25ebc5661910f9679e3 (diff) |
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/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 63ef9cdf0144..e9bbff3c0029 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -142,7 +142,7 @@ no_valid_dev_replace_entry_found: | |||
142 | * missing | 142 | * missing |
143 | */ | 143 | */ |
144 | if (!dev_replace->srcdev && | 144 | if (!dev_replace->srcdev && |
145 | !btrfs_test_opt(dev_root, DEGRADED)) { | 145 | !btrfs_test_opt(dev_root->fs_info, DEGRADED)) { |
146 | ret = -EIO; | 146 | ret = -EIO; |
147 | btrfs_warn(fs_info, | 147 | btrfs_warn(fs_info, |
148 | "cannot mount because device replace operation is ongoing and"); | 148 | "cannot mount because device replace operation is ongoing and"); |
@@ -151,7 +151,7 @@ no_valid_dev_replace_entry_found: | |||
151 | src_devid); | 151 | src_devid); |
152 | } | 152 | } |
153 | if (!dev_replace->tgtdev && | 153 | if (!dev_replace->tgtdev && |
154 | !btrfs_test_opt(dev_root, DEGRADED)) { | 154 | !btrfs_test_opt(dev_root->fs_info, DEGRADED)) { |
155 | ret = -EIO; | 155 | ret = -EIO; |
156 | btrfs_warn(fs_info, | 156 | btrfs_warn(fs_info, |
157 | "cannot mount because device replace operation is ongoing and"); | 157 | "cannot mount because device replace operation is ongoing and"); |