aboutsummaryrefslogtreecommitdiffstats
path: root/disk-io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-02-12 13:41:00 +0100
committerDavid Sterba <dsterba@suse.cz>2015-02-12 13:41:00 +0100
commitc02b4adcb6a529a29f429db3020405f9aefc2f0d (patch)
tree703eea6854b39d5713f585ea3ad020661ea6d016 /disk-io.c
parentd09504edb148336893d2a67c4cceb09b640ade14 (diff)
downloadbtrfs-progs-c02b4adcb6a529a29f429db3020405f9aefc2f0d.tar.gz
btrfs-progs-c02b4adcb6a529a29f429db3020405f9aefc2f0d.tar.xz
btrfs-progs-c02b4adcb6a529a29f429db3020405f9aefc2f0d.zip
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>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/disk-io.c b/disk-io.c
index b709ff5..c1cf146 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -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;
}