btrfs-progs: Sync code with kernel for BTRFS_MAX_INLINE_DATA_SIZE
authorGu Jinxiang <gujx@cn.fujitsu.com>
Fri, 26 Jan 2018 07:26:02 +0000 (15:26 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:57 +0000 (16:01 +0100)
commitc9581107856ac932817c4bb832042c968af45394
treef733bc34c719da20c9f1bbdaf6994a70b579d75f
parent3809b36d855fd13aad31c3a426a4d7434180003a
btrfs-progs: Sync code with kernel for BTRFS_MAX_INLINE_DATA_SIZE

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

Change macro to inline function to be consistent with kernel.  And
change the function body to match kernel.

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