btrfs-progs: fix typo in OPEN_CTREE flag
Introduced in "btrfs-progs: Add new btrfs_open_ctree_flags CHUNK_ONLY" by my local fixups. Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
d09504edb1
commit
c02b4adcb6
|
@ -1197,7 +1197,7 @@ static struct btrfs_fs_info *__open_ctree_fd(int fp, const char *path,
|
|||
BTRFS_UUID_SIZE);
|
||||
|
||||
ret = btrfs_setup_all_roots(fs_info, root_tree_bytenr, flags);
|
||||
if (ret && !(flags & __OPEN_CTREEE_RETURN_CHUNK_ROOT))
|
||||
if (ret && !(flags & __OPEN_CTREE_RETURN_CHUNK_ROOT))
|
||||
goto out_chunk;
|
||||
|
||||
return fs_info;
|
||||
|
@ -1242,7 +1242,7 @@ struct btrfs_root *open_ctree(const char *filename, u64 sb_bytenr,
|
|||
info = open_ctree_fs_info(filename, sb_bytenr, 0, flags);
|
||||
if (!info)
|
||||
return NULL;
|
||||
if (flags & __OPEN_CTREEE_RETURN_CHUNK_ROOT)
|
||||
if (flags & __OPEN_CTREE_RETURN_CHUNK_ROOT)
|
||||
return info->chunk_root;
|
||||
return info->fs_root;
|
||||
}
|
||||
|
@ -1254,7 +1254,7 @@ struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr,
|
|||
info = __open_ctree_fd(fp, path, sb_bytenr, 0, flags);
|
||||
if (!info)
|
||||
return NULL;
|
||||
if (flags & __OPEN_CTREEE_RETURN_CHUNK_ROOT)
|
||||
if (flags & __OPEN_CTREE_RETURN_CHUNK_ROOT)
|
||||
return info->chunk_root;
|
||||
return info->fs_root;
|
||||
}
|
||||
|
|
|
@ -40,10 +40,10 @@ enum btrfs_open_ctree_flags {
|
|||
*/
|
||||
OPEN_CTREE_SUPPRESS_CHECK_BLOCK_ERRORS = (1 << 8),
|
||||
/* Return chunk root */
|
||||
__OPEN_CTREEE_RETURN_CHUNK_ROOT = (1 << 9),
|
||||
__OPEN_CTREE_RETURN_CHUNK_ROOT = (1 << 9),
|
||||
OPEN_CTREE_CHUNK_ROOT_ONLY = OPEN_CTREE_PARTIAL +
|
||||
OPEN_CTREE_SUPPRESS_CHECK_BLOCK_ERRORS +
|
||||
__OPEN_CTREEE_RETURN_CHUNK_ROOT,
|
||||
__OPEN_CTREE_RETURN_CHUNK_ROOT,
|
||||
/*
|
||||
* TODO: cleanup: Split the open_ctree_flags into more indepent
|
||||
* tree bits.
|
||||
|
|
Loading…
Reference in New Issue