diff options
author | David Sterba <dsterba@suse.cz> | 2014-06-15 03:54:12 +0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-02 19:14:54 +0400 |
commit | 4d75f8a9c87b843c8ded15b82b8d137b9724cccc (patch) | |
tree | a6ac5d4fee70795507ccdebe83f92b6c28ab2d27 /fs/btrfs/ioctl.c | |
parent | 0308af4465897c889e32754ef37bb465a1b2b872 (diff) | |
download | linux-4d75f8a9c87b843c8ded15b82b8d137b9724cccc.tar.xz |
btrfs: remove blocksize from btrfs_alloc_free_block and rename
Rename to btrfs_alloc_tree_block as it fits to the alloc/find/free +
_tree_block family. The parameter blocksize was set to the metadata
block size, directly or indirectly.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 0ff212757b95..2fc48905ccf5 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -480,8 +480,7 @@ static noinline int create_subvol(struct inode *dir, if (ret) goto fail; - leaf = btrfs_alloc_free_block(trans, root, root->nodesize, - 0, objectid, NULL, 0, 0, 0); + leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); if (IS_ERR(leaf)) { ret = PTR_ERR(leaf); goto fail; |