btrfs-progs: Remove deprecated leafsize usage
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 17 May 2017 08:42:50 +0000 (16:42 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jul 2017 11:35:10 +0000 (13:35 +0200)
commit3c7a04e59272837b8d70f2cfdfd7173d53c72616
tree457c3798ce7c3dab868e85e12666ff3dffd56f2a
parent8f41197b92d711a18e473e326bf576129051b7d5
btrfs-progs: Remove deprecated leafsize usage

Leafsize is deprecated for a long time, and kernel has already updated
ctree.h to rename sb->leafsize to sb->__unused_leafsize.

This patch will remove normal users of leafsize:
1) Remove leafsize member from btrfs_root structure
   Now only root->nodesize and root->sectorisze.
   No longer root->leafsize.

2) Remove @leafsize parameter from btrfs_setup_root() function
   Since no root->leafsize, no need for @leafsize parameter.

The remaining user of leafsize will be:
1) btrfs inspect-internal dump-super
   Reformat the "leafsize" output to "leafsize (deprecated)" and
   use le32_to_cpu() to do the cast manually.

2) mkfs
   We still need to set sb->__unused_leafsize to nodesize.
   Do the manual cast too.

3) convert
   Same as mkfs, these two superblock setup should be merged later

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
chunk-recover.c
cmds-inspect-dump-super.c
convert/common.c
ctree.h
disk-io.c
disk-io.h
mkfs/common.c