commit | 02f57c7aedef1a537f4b16db7061cdd8efa3bb4e | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Wed Apr 06 14:25:44 2011 -0400 |
committer | Josef Bacik <josef@redhat.com> | Fri Apr 08 13:00:37 2011 -0400 |
tree | e1b9cc54d0b4c661107b7a097bc0f64087aae8b6 | |
parent | 1ef30be142d2cc60e2687ef267de864cf31be995 [diff] |
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>