Btrfs: bio_endio support for linux 2.6.23 and older.

bio_endio() changed prototype on linux 2.6.24, support older kernels
using the older prototype.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Miguel
2008-04-11 15:50:59 -04:00
committed by Chris Mason
parent 594994aa3e
commit 73f61b2a64
2 changed files with 8 additions and 1 deletions

View File

@@ -960,7 +960,11 @@ static int end_bio_multi_stripe(struct bio *bio,
err = multi->error;
kfree(multi);
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23)
bio_endio(bio, bio->bi_size, err);
#else
bio_endio(bio, err);
#endif
} else {
bio_put(bio);
}