projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Btrfs: use bit operation for ->fs_state
[linux-2.6-block.git]
/
fs
/
btrfs
/
scrub.c
diff --git
a/fs/btrfs/scrub.c
b/fs/btrfs/scrub.c
index 67783e03d1211bdcba1e84a20aa56a528916c370..c78b2a3fc3359e5625ff703f32f4fcc1cb3ae792 100644
(file)
--- a/
fs/btrfs/scrub.c
+++ b/
fs/btrfs/scrub.c
@@
-2708,7
+2708,7
@@
static noinline_for_stack int scrub_supers(struct scrub_ctx *sctx,
int ret;
struct btrfs_root *root = sctx->dev_root;
- if (
root->fs_info->fs_state & BTRFS_SUPER_FLAG_ERROR
)
+ if (
test_bit(BTRFS_FS_STATE_ERROR, &root->fs_info->fs_state)
)
return -EIO;
gen = root->fs_info->last_trans_committed;