projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm raid: support raid0 with missing metadata devices
[cascardo/linux.git]
/
fs
/
btrfs
/
dev-replace.c
diff --git
a/fs/btrfs/dev-replace.c
b/fs/btrfs/dev-replace.c
index
63ef9cd
..
e9bbff3
100644
(file)
--- 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 &&
* 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");
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 &&
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");
ret = -EIO;
btrfs_warn(fs_info,
"cannot mount because device replace operation is ongoing and");