aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index f327525f541d..1fe38fe84150 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -30,6 +30,7 @@
30#include <linux/writeback.h> 30#include <linux/writeback.h>
31#include <linux/statfs.h> 31#include <linux/statfs.h>
32#include <linux/compat.h> 32#include <linux/compat.h>
33#include <linux/version.h>
33#include "ctree.h" 34#include "ctree.h"
34#include "disk-io.h" 35#include "disk-io.h"
35#include "transaction.h" 36#include "transaction.h"
@@ -713,8 +714,12 @@ out:
713} 714}
714 715
715static struct vm_operations_struct btrfs_file_vm_ops = { 716static struct vm_operations_struct btrfs_file_vm_ops = {
716 .nopage = filemap_nopage, 717#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
717 .populate = filemap_populate, 718 .nopage = filemap_nopage,
719 .populate = filemap_populate,
720#else
721 .fault = filemap_fault,
722#endif
718 .page_mkwrite = btrfs_page_mkwrite, 723 .page_mkwrite = btrfs_page_mkwrite,
719}; 724};
720 725