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

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

 



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
--
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