]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't pre-allocate btrfs bio
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 1 Dec 2011 04:55:47 +0000 (12:55 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 11 Jan 2012 02:26:44 +0000 (10:26 +0800)
commit5713a4271eecf2fd607fd3ecf8d03109580789b6
treea9232dd3531707f49c5e56523019a1e0ce081876
parentb92fe90aee9d5527a69e215f58ab0e922ed8b8b2
Btrfs: don't pre-allocate btrfs bio

We pre-allocate a btrfs bio with fixed size, and then may re-allocate
memory if we find stripes are bigger than the fixed size. But this
pre-allocation is not necessary.

Also we don't have to calcuate the stripe number twice.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/volumes.c