Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69e380d1 authored by Li Zefan's avatar Li Zefan Committed by Chris Mason
Browse files

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: default avatarLi Zefan <lizefan@huawei.com>
parent 6c282eb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

	/*