Btrfs: make set/get functions for the super compat_ro flags use compat_ro
authorJosef Bacik <josef@redhat.com>
Thu, 17 Dec 2009 21:32:27 +0000 (21:32 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 14:55:10 +0000 (10:55 -0400)
Our set/get functions for compat_ro_flags actually look at compat_flags.  This
will mess any attempt to use compat flags up.  The fix is obvious.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h

index 2aa8ec6a09812051ba5578092c608c3d0c460535..abbce4d90c1b3b167665e2f03648a9c73fa6bc54 100644 (file)
@@ -1842,7 +1842,7 @@ BTRFS_SETGET_STACK_FUNCS(super_num_devices, struct btrfs_super_block,
 BTRFS_SETGET_STACK_FUNCS(super_compat_flags, struct btrfs_super_block,
                         compat_flags, 64);
 BTRFS_SETGET_STACK_FUNCS(super_compat_ro_flags, struct btrfs_super_block,
-                        compat_flags, 64);
+                        compat_ro_flags, 64);
 BTRFS_SETGET_STACK_FUNCS(super_incompat_flags, struct btrfs_super_block,
                         incompat_flags, 64);
 BTRFS_SETGET_STACK_FUNCS(super_csum_type, struct btrfs_super_block,