Skip to content

Commit

Permalink
Btrfs: fix incompat flags setting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zefan authored and Chris Mason committed Jun 15, 2012
1 parent 6c282eb commit 69e380d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 69e380d

Please sign in to comment.