• Josef Bacik's avatar
    Btrfs: don't split dio bios if we don't have to · 02f57c7a
    Josef Bacik authored
    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>
    02f57c7a
inode.c 199 KB