]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: validate target profiles only if we are going to use them
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)
commit34bacc98a8286f41bfbd4b147472ec893fdb8ab6
treecaf0f07250c8df5cb97551088395748eb9e753ff
parent7ad5aa2ba454bfa4baa756cb6a14813b64b5cf91
Btrfs: validate target profiles only if we are going to use them

Do not run sanity checks on all target profiles unless they all will be
used.  This came up because alloc_profile_is_valid() is now more strict
than it used to be.

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