[Btrfs-devel] [PATCH] bio_endio support for linux 2.6.23 and older.

Miguel Sousa Filipe miguel.filipe at gmail.com
Sat Apr 5 12:45:39 PDT 2008


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



More information about the Btrfs-devel mailing list