Btrfs: don't split dio bios if we don't have to
authorJosef Bacik <josef@redhat.com>
Wed, 6 Apr 2011 18:25:44 +0000 (14:25 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 8 Apr 2011 17:00:37 +0000 (13:00 -0400)
commit02f57c7aedef1a537f4b16db7061cdd8efa3bb4e
treee1b9cc54d0b4c661107b7a097bc0f64087aae8b6
parent1ef30be142d2cc60e2687ef267de864cf31be995
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: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c