btrfs-progs: mkfs: Move out some nodesize code
authorSebastian Thorarensen <sebth@naju.se>
Fri, 20 Mar 2015 01:10:15 +0000 (02:10 +0100)
committerDavid Sterba <dsterba@suse.cz>
Mon, 23 Mar 2015 15:53:15 +0000 (16:53 +0100)
commit50580171cb4482e30a30077cb6a734203b745e81
tree75c2388fb2c2bb8ac551fcca44aa19ee8bc03b86
parent7a81861b5903251376c2abeb659610f61256f548
btrfs-progs: mkfs: Move out some nodesize code

Move the constant DEFAULT_MKFS_LEAF_SIZE to utils.h and rename it to
BTRFS_MKFS_DEFAULT_NODE_SIZE for consistency. Move the function
check_leaf_or_node_size to utils.c and rename it to
btrfs_check_node_or_leaf_size.

Signed-off-by: Sebastian Thorarensen <sebth@naju.se>
[added btrfs_ prefix]
Signed-off-by: David Sterba <dsterba@suse.cz>
mkfs.c
utils.c
utils.h