X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=btrfs-select-super.c;h=e021221e286d20218c84a9c7e7605c55e4526a0b;hb=faaf70f1cc7ade1d6d5a41a900a3b58cc4bd5f58;hp=7e96dc0bced5c15283eacc05b4e6b3b8dc7eb652;hpb=57d1cbd867311d99a2ae5e3cdcffd04460ec372a;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/btrfs-select-super.c b/btrfs-select-super.c index 7e96dc0..e021221 100644 --- a/btrfs-select-super.c +++ b/btrfs-select-super.c @@ -29,6 +29,7 @@ #include "transaction.h" #include "list.h" #include "utils.h" +#include "help.h" static void print_usage(void) { @@ -92,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