From: Miguel Date: Fri, 11 Apr 2008 19:46:48 +0000 (-0400) Subject: Btrfs: define write_cache_pages for linux kernel <= 2.6.20 instead X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=594994aa3ea4cb52cba9c83a4b6f03e6ff3a646e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Btrfs: define write_cache_pages for linux kernel <= 2.6.20 instead write_cache_pages doesn't exist in linux 2.6.20, change the #if condition to match that. Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 866460c3d72c..88322684be6a 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2109,8 +2109,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, void *data);