aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2016-07-26 13:07:05 -0700
committerChris Mason <clm@fb.com>2016-07-26 13:07:05 -0700
commit023a824f04754a4ed5efc16ee8e41bb932878b0b (patch)
tree8ae0bc5a61945bdec42d6c7a929967c548031d5d /fs/btrfs/dev-replace.c
parentBtrfs: fix delalloc accounting after copy_from_user faults (diff)
parentbtrfs: btrfs_abort_transaction, drop root parameter (diff)
downloadlinux-dev-023a824f04754a4ed5efc16ee8e41bb932878b0b.tar.xz
linux-dev-023a824f04754a4ed5efc16ee8e41bb932878b0b.zip
Merge branch 'kdave-v4.8' into for-linus-4.8
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r--fs/btrfs/dev-replace.c4
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:
* missing
*/
if (!dev_replace->srcdev &&
- !btrfs_test_opt(dev_root, DEGRADED)) {
+ !btrfs_test_opt(dev_root->fs_info, DEGRADED)) {
ret = -EIO;
btrfs_warn(fs_info,
"cannot mount because device replace operation is ongoing and");
@@ -151,7 +151,7 @@ no_valid_dev_replace_entry_found:
src_devid);
}
if (!dev_replace->tgtdev &&
- !btrfs_test_opt(dev_root, DEGRADED)) {
+ !btrfs_test_opt(dev_root->fs_info, DEGRADED)) {
ret = -EIO;
btrfs_warn(fs_info,
"cannot mount because device replace operation is ongoing and");