Miguel Sousa Filipe
2008-Apr-05 19:40 UTC
[Btrfs-devel] [PATCH] define write_cache_pages for linux kernel <= 2.6.20 instead of 2.6.18
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