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 <chris.mason@oracle.com>
This commit is contained in:
Miguel 2008-04-11 15:46:48 -04:00 committed by Chris Mason
parent a5eb62e345
commit 594994aa3e

View File

@ -2109,8 +2109,7 @@ static int __extent_writepage(struct page *page, struct writeback_control *wbc,
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);