projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c282eb
)
Btrfs: fix incompat flags setting
author
Li Zefan
<lizefan@huawei.com>
Mon, 11 Jun 2012 09:10:51 +0000
(17:10 +0800)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 15 Jun 2012 01:30:57 +0000
(21:30 -0400)
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>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index
1c9664b
..
9a569ae
100644
(file)
--- 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;
/*