diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-07-25 12:31:35 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-07-25 12:31:35 -0400 |
commit | 92fee66d49b812ea57eae53c5baaf8942ac9af06 (patch) | |
tree | 48668d45038a0d53a647623b2782e35090d1e7ee /fs/btrfs/file.c | |
parent | 618e21d5957c88c5ea346dfd7d1dbac96410fc5b (diff) |
Btrfs: deal with api changes in 2.6.23-rc1
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 9 |
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 | ||
715 | static struct vm_operations_struct btrfs_file_vm_ops = { | 716 | static 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 | ||