btrfs: sink blocksize parameter to btrfs_find_create_tree_block
authorDavid Sterba <dsterba@suse.cz>
Sun, 15 Jun 2014 00:39:54 +0000 (02:39 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 12 Dec 2014 17:07:21 +0000 (18:07 +0100)
commita83fffb75d09cd3d44167b7fb9c1ab9e2269445f
tree2b1f04ff36a7e085a3d773217e35813b07298da3
parentfe864576de7fb940b5bd1f8ab8908a08a3416ca0
btrfs: sink blocksize parameter to btrfs_find_create_tree_block

Finally it's clear that the requested blocksize is always equal to
nodesize, with one exception, the superblock.

Superblock has fixed size regardless of the metadata block size, but
uses the same helpers to initialize sys array/chunk tree and to work
with the chunk items. So it pretends to be an extent_buffer for a
moment, btrfs_read_sys_array is full of special cases, we're adding one
more.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/tree-log.c
fs/btrfs/volumes.c