Hi there,

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


diff -r 4b838034355c volumes.c
--- a/volumes.c Sat Apr 05 19:06:30 2008 +0100
+++ b/volumes.c Sat Apr 05 20:41:15 2008 +0100
@@ -912,7 +912,11 @@ static int end_bio_multi_stripe(struct b
                        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);
        }

Kind regards,

-- 
Miguel Sousa Filipe

_______________________________________________
Btrfs-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/btrfs-devel

Reply via email to