Btrfs: fix max chunk size check in chunk allocator
authorIlya Dryomov <idryomov@gmail.com>
Fri, 13 Apr 2012 14:05:08 +0000 (17:05 +0300)
committerDavid Sterba <dsterba@suse.cz>
Wed, 18 Apr 2012 17:22:25 +0000 (19:22 +0200)
commit37db63a400d3bac467795aa43901065fd8d903b7
tree6dcafae4fa5e43bccaac3799685b1519575968a2
parentb916a59adfdc875381b68ced258694b434cf43ae
Btrfs: fix max chunk size check in chunk allocator

Fix a bug, where in case we need to adjust stripe_size so that the
length of the resulting chunk is less than or equal to max_chunk_size,
DUP chunks turn out to be only half as big as they could be.

Cc: Arne Jansen <sensille@gmx.net>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/volumes.c