summaryrefslogtreecommitdiff
path: root/btrfs-select-super.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-06-13 17:19:27 +0800
committerDavid Sterba <dsterba@suse.com>2017-07-12 17:53:28 +0200
commita0d9de4e40cc9e0c613826bebb9a9e4a512eb495 (patch)
treef1fdbdfc8452e59a84a07dcebf7959178cb9140e /btrfs-select-super.c
parentbb3ecd59f23b9cef8a657200c7455eb3f320682a (diff)
btrfs-progs: Refactor write_all_supers and its callers to use btrfs_fs_info
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-select-super.c')
-rw-r--r--btrfs-select-super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-select-super.c b/btrfs-select-super.c
index 0a899966..e021221e 100644
--- a/btrfs-select-super.c
+++ b/btrfs-select-super.c
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
/* make the super writing code think we've read the first super */
root->fs_info->super_bytenr = BTRFS_SUPER_INFO_OFFSET;
- ret = write_all_supers(root);
+ ret = write_all_supers(root->fs_info);
/* we don't close the ctree or anything, because we don't want a real
* transaction commit. We just want the super copy we pulled off the