@@ -76,7 +76,7 @@ static void get_root_gen_and_level(u64 objectid, struct btrfs_fs_info *fs_info,
gen = btrfs_stack_super_log_root_transid(super);
break;
case BTRFS_UUID_TREE_OBJECTID:
- gen = btrfs_super_uuid_tree_generation(super);
+ gen = btrfs_stack_super_uuid_tree_generation(super);
break;
}
if (gen != (u64)-1) {
@@ -416,7 +416,7 @@ static void dump_superblock(struct btrfs_super_block *sb, int full)
printf("cache_generation\t%llu\n",
(unsigned long long)btrfs_stack_super_cache_generation(sb));
printf("uuid_tree_generation\t%llu\n",
- (unsigned long long)btrfs_super_uuid_tree_generation(sb));
+ (unsigned long long)btrfs_stack_super_uuid_tree_generation(sb));
uuid_unparse(sb->dev_item.uuid, buf);
printf("dev_item.uuid\t\t%s\n", buf);
@@ -2208,7 +2208,8 @@ BTRFS_SETGET_STACK_FUNCS(stack_super_csum_type, struct btrfs_super_block,
csum_type, 16);
BTRFS_SETGET_STACK_FUNCS(stack_super_cache_generation, struct btrfs_super_block,
cache_generation, 64);
-BTRFS_SETGET_STACK_FUNCS(super_uuid_tree_generation, struct btrfs_super_block,
+BTRFS_SETGET_STACK_FUNCS(stack_super_uuid_tree_generation,
+ struct btrfs_super_block,
uuid_tree_generation, 64);
BTRFS_SETGET_STACK_FUNCS(super_magic, struct btrfs_super_block, magic, 64);
The super_uuid_tree_generation 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> --- btrfs-find-root.c | 2 +- cmds-inspect-dump-super.c | 2 +- ctree.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-)