]> Git Repo - linux.git/commit
Btrfs: don't pre-allocate btrfs bio
authorLi Zefan <[email protected]>
Thu, 1 Dec 2011 04:55:47 +0000 (12:55 +0800)
committerLi Zefan <[email protected]>
Wed, 11 Jan 2012 02:26:44 +0000 (10:26 +0800)
commitde11cc12df17337979e0929d2831887432f236ca
treea9232dd3531707f49c5e56523019a1e0ce081876
parent125ccb0ae6806dbec31abf4a85448971df3b4e39
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 <[email protected]>
fs/btrfs/volumes.c
This page took 0.048011 seconds and 4 git commands to generate.