diff options
author | Miguel <miguel.filipe@gmail.com> | 2008-04-11 15:46:48 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | 594994aa3ea4cb52cba9c83a4b6f03e6ff3a646e (patch) | |
tree | 82c38f504cfd4f48673ae9853ff855bee7e9113a /fs/btrfs | |
parent | a5eb62e345fc1818d0d8b6181463200a9e8dfe39 (diff) |
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/extent_io.c | 3 |
1 files changed, 1 insertions, 2 deletions
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: | |||
2109 | return 0; | 2109 | return 0; |
2110 | } | 2110 | } |
2111 | 2111 | ||
2112 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) | 2112 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20) |
2113 | |||
2114 | /* Taken directly from 2.6.23 for 2.6.18 back port */ | 2113 | /* Taken directly from 2.6.23 for 2.6.18 back port */ |
2115 | typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc, | 2114 | typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc, |
2116 | void *data); | 2115 | void *data); |