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)
commit6728b198deb02c187b5e5a99eb7d1cc9c8bc65e9
treecaf0f07250c8df5cb97551088395748eb9e753ff
parent4a5e98f5d61f698452e564e0cde34c16a6b65752
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