The super_compat_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.

Signed-off-by: Lu Fengqi <lufq.f...@cn.fujitsu.com>
---
 cmds-inspect-dump-super.c | 2 +-
 ctree.h                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmds-inspect-dump-super.c b/cmds-inspect-dump-super.c
index 7308b476..24037125 100644
--- a/cmds-inspect-dump-super.c
+++ b/cmds-inspect-dump-super.c
@@ -406,7 +406,7 @@ static void dump_superblock(struct btrfs_super_block *sb, 
int full)
        printf("num_devices\t\t%llu\n",
               (unsigned long long)btrfs_stack_super_num_devices(sb));
        printf("compat_flags\t\t0x%llx\n",
-              (unsigned long long)btrfs_super_compat_flags(sb));
+              (unsigned long long)btrfs_stack_super_compat_flags(sb));
        printf("compat_ro_flags\t\t0x%llx\n",
               (unsigned long long)btrfs_super_compat_ro_flags(sb));
        print_readable_compat_ro_flag(btrfs_super_compat_ro_flags(sb));
diff --git a/ctree.h b/ctree.h
index 41b5785d..c18b5577 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2198,7 +2198,7 @@ BTRFS_SETGET_STACK_FUNCS(stack_super_root_dir, struct 
btrfs_super_block,
                         root_dir_objectid, 64);
 BTRFS_SETGET_STACK_FUNCS(stack_super_num_devices, struct btrfs_super_block,
                         num_devices, 64);
-BTRFS_SETGET_STACK_FUNCS(super_compat_flags, struct btrfs_super_block,
+BTRFS_SETGET_STACK_FUNCS(stack_super_compat_flags, struct btrfs_super_block,
                         compat_flags, 64);
 BTRFS_SETGET_STACK_FUNCS(super_compat_ro_flags, struct btrfs_super_block,
                         compat_ro_flags, 64);
-- 
2.15.1



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to