linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] define write_cache_pages for linux kernel <= 2.6.20 instead of 2.6.18
@ 2008-04-05 19:40 Miguel Sousa Filipe
  0 siblings, 0 replies; only message in thread
From: Miguel Sousa Filipe @ 2008-04-05 19:40 UTC (permalink / raw)
  To: btrfs-devel, linux-btrfs

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-05 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-05 19:40 [PATCH] define write_cache_pages for linux kernel <= 2.6.20 instead of 2.6.18 Miguel Sousa Filipe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).