diff options
author | Li Zefan <lizefan@huawei.com> | 2012-06-11 09:10:51 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-06-15 01:30:57 (GMT) |
commit | 69e380d176e73653e09ce2cf3a5dc09682a69229 (patch) | |
tree | 6a31ab352c7c172a4a73c1f207563c82a850425b /fs/btrfs | |
parent | 6c282eb40ed6f64a51ff447707714df551d85b8e (diff) | |
download | linux-fsl-qoriq-69e380d176e73653e09ce2cf3a5dc09682a69229.tar.xz |
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/btrfs')
-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 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; /* |