]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc07b40a2c34842a74d3730537b76029f1395919
treee1b9cc54d0b4c661107b7a097bc0f64087aae8b6
parent736c908e9cde84ef271633524cfae42b9e3adec2
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