diff options
author | Miguel <miguel.filipe@gmail.com> | 2008-04-11 15:50:59 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | 73f61b2a6459df982cb4faf0e5cf5ac8b153aaff (patch) | |
tree | b0f4a5e9e97591392a81c1ef84567c445aa7c6da /fs/btrfs/volumes.c | |
parent | 594994aa3ea4cb52cba9c83a4b6f03e6ff3a646e (diff) |
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 07d43553141c..82bc6cfc110f 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -960,7 +960,11 @@ static int end_bio_multi_stripe(struct bio *bio, | |||
960 | err = multi->error; | 960 | err = multi->error; |
961 | kfree(multi); | 961 | kfree(multi); |
962 | 962 | ||
963 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23) | ||
964 | bio_endio(bio, bio->bi_size, err); | ||
965 | #else | ||
963 | bio_endio(bio, err); | 966 | bio_endio(bio, err); |
967 | #endif | ||
964 | } else { | 968 | } else { |
965 | bio_put(bio); | 969 | bio_put(bio); |
966 | } | 970 | } |