[Btrfs-devel] [PATCH] define write_cache_pages for linux kernel <= 2.6.20 instead of 2.6.18

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


Hi,
write_cache_pages doesn't exist in linux 2.6.20,  change the #if
condition to match that.

diff -r 4b838034355c extent_io.c
--- a/extent_io.c       Sat Apr 05 19:06:30 2008 +0100
+++ b/extent_io.c       Sat Apr 05 20:36:59 2008 +0100
@@ -2096,7 +2096,7 @@ done:
        return 0;
 }

-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)

 /* Taken directly from 2.6.23 for 2.6.18 back port */
 typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc,


-- 
Miguel Sousa Filipe



More information about the Btrfs-devel mailing list