summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-10 17:11:09 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-11 16:25:17 +0100
commit279609aedf1433f9b0138c842db242e8e31ddc1e (patch)
tree5607d1468efdbda43819f8cf2585372739525ad4 /utils.c
parent388cdce5092333efc569344908df9839a1c0cbba (diff)
btrfs-progs: mkfs: add temporary variable for fs features
A minor cleanup before other changes. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/utils.c b/utils.c
index 89fb215a..fb1d70c2 100644
--- a/utils.c
+++ b/utils.c
@@ -1522,17 +1522,15 @@ void btrfs_list_all_fs_features(u64 mask_disallowed)
fprintf(stderr, "Filesystem features available:\n");
for (i = 0; i < ARRAY_SIZE(mkfs_features) - 1; i++) {
+ const struct btrfs_fs_feature *feat = &mkfs_features[i];
char *is_default = "";
- if (mkfs_features[i].flag & mask_disallowed)
+ if (feat->flag & mask_disallowed)
continue;
- if (mkfs_features[i].flag & BTRFS_MKFS_DEFAULT_FEATURES)
+ if (feat->flag & BTRFS_MKFS_DEFAULT_FEATURES)
is_default = ", default";
- fprintf(stderr, "%-20s- %s (0x%llx%s)\n",
- mkfs_features[i].name,
- mkfs_features[i].desc,
- mkfs_features[i].flag,
- is_default);
+ fprintf(stderr, "%-20s- %s (0x%llx%s)\n", feat->name,
+ feat->desc, feat->flag, is_default);
}
}