btrfs-progs: Use fs_info instead of root for BTRFS_LEAF_DATA_SIZE
authorGu Jinxiang <gujx@cn.fujitsu.com>
Fri, 26 Jan 2018 07:26:00 +0000 (15:26 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:56 +0000 (16:01 +0100)
commit26072f584d347ef2d471c02fbe27dbfedd606ac4
treec9b94490710d5eefdc23db5e3925d622b198387f
parentc449c391f5ec88e903f7a6b82bb3fc55f261c35b
btrfs-progs: Use fs_info instead of root for BTRFS_LEAF_DATA_SIZE

Do a cleanup. Also make it consistent with kernel.  Use fs_info instead
of root for BTRFS_LEAF_DATA_SIZE, since maybe in some situation we do
not know root, but just know fs_info.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c
convert/source-ext2.c
convert/source-reiserfs.c
ctree.c
ctree.h
file-item.c
volumes.c