btrfs: unify extent buffer allocation api
authorDavid Sterba <dsterba@suse.cz>
Sun, 15 Jun 2014 01:20:26 +0000 (03:20 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 12 Dec 2014 17:26:55 +0000 (18:26 +0100)
commit3f556f7853ec4845a7c219d026cbcdf4cfa8cea7
treecf3552bb4ed22bc7c46403549ca13043c40fe460
parent23d79d81b13431756fee428acde49c9b770da132
btrfs: unify extent buffer allocation api

Make the extent buffer allocation interface consistent.  Cloned eb will
set a valid fs_info.  For dummy eb, we can drop the length parameter and
set it from fs_info.

The built-in sanity checks may pass a NULL fs_info that's queried for
nodesize, but we know it's 4096.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ctree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/tests/extent-buffer-tests.c
fs/btrfs/tests/inode-tests.c
fs/btrfs/tests/qgroup-tests.c