Skip to content

Commit

Permalink
Btrfs: define write_cache_pages for linux kernel <= 2.6.20 instead
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miguel authored and Chris Mason committed Sep 25, 2008
1 parent a5eb62e commit 594994a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 594994a

Please sign in to comment.