Skip to content
Commit 02f57c7a authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: don't split dio bios if we don't have to



We have been unconditionally allocating a new bio and re-adding all pages from
our original bio to the new bio.  This is needed if our original bio is larger
than our stripe size, but if it is smaller than the stripe size then there is no
need to do this.  So check the map length and if we are under that then go ahead
and submit the original bio.  Thanks,

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 1ef30be1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment