]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5fc530ee6eff4483f2419e6c6f4a26a143b548b9
tree6dcafae4fa5e43bccaac3799685b1519575968a2
parent4ef4469fd002de0108496f184573eb4454ad2642
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