@@ -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));
@@ -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);
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.fnst@cn.fujitsu.com> --- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)