Skip to content
Commit de11cc12 authored by Li Zefan's avatar Li Zefan
Browse files

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
parent 125ccb0a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment