]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: move alloc_profile_is_valid() to volumes.c
authorIlya Dryomov <idryomov@gmail.com>
Tue, 27 Mar 2012 14:09:17 +0000 (17:09 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 27 Mar 2012 14:09:17 +0000 (17:09 +0300)
commit76cf225cf2f4a552830398a02db2c0c9f1096a6f
tree8c28962481b64a3dcabb2294094435832a23516d
parentcd1a0dd65828460ea4cbabdf80572148c5401762
Btrfs: move alloc_profile_is_valid() to volumes.c

Header file is not a good place to define functions.  This also moves a
call to alloc_profile_is_valid() down the stack and removes a redundant
check from __btrfs_alloc_chunk() - alloc_profile_is_valid() takes it
into account.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/volumes.c