[PATCH] bio_endio support for linux 2.6.23 and older.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux