aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2012-06-11 17:10:51 +0800
committerChris Mason <chris.mason@oracle.com>2012-06-14 21:30:57 -0400
commit69e380d176e73653e09ce2cf3a5dc09682a69229 (patch)
tree6a31ab352c7c172a4a73c1f207563c82a850425b /fs
parent6c282eb40ed6f64a51ff447707714df551d85b8e (diff)
downloadkernel_goldelico_gta04-69e380d176e73653e09ce2cf3a5dc09682a69229.zip
kernel_goldelico_gta04-69e380d176e73653e09ce2cf3a5dc09682a69229.tar.gz
kernel_goldelico_gta04-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 1c9664b..9a569ae 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;
/*