• Li Zefan's avatar
    Btrfs: don't pre-allocate btrfs bio · de11cc12
    Li Zefan authored
    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>
    de11cc12
volumes.c 93.8 KB