diff options
author | Li Zefan <lizefan@huawei.com> | 2012-06-11 17:10:51 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-06-14 21:30:57 -0400 |
commit | 69e380d176e73653e09ce2cf3a5dc09682a69229 (patch) | |
tree | 6a31ab352c7c172a4a73c1f207563c82a850425b /fs | |
parent | 6c282eb40ed6f64a51ff447707714df551d85b8e (diff) | |
download | linux-69e380d176e73653e09ce2cf3a5dc09682a69229.tar.bz2 |
Btrfs: fix incompat flags setting
It's a bug, but it happens to work, as BTRFS_COMPRESS_LZO == 2, which
has only one bit set.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 1c9664b16cd1..9a569aef72ea 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2119,7 +2119,7 @@ int open_ctree(struct super_block *sb, features = btrfs_super_incompat_flags(disk_super); features |= BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF; - if (tree_root->fs_info->compress_type & BTRFS_COMPRESS_LZO) + if (tree_root->fs_info->compress_type == BTRFS_COMPRESS_LZO) features |= BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO; /* |