From: yangsheng Date: Tue, 11 Nov 2008 07:43:49 +0000 (+0000) Subject: Branch b1_8_gate X-Git-Tag: v1_7_140~1^24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a6cb399de52b62985414c99c2f39a8ed535d3077;p=fs%2Flustre-release.git Branch b1_8_gate b=17153 i=adilger, robert.read Remove 2.4 check. Author: tappro CVSooi= --- diff --git a/lustre/llite/llite_mmap.c b/lustre/llite/llite_mmap.c index d48ddd8..886cf9d 100644 --- a/lustre/llite/llite_mmap.c +++ b/lustre/llite/llite_mmap.c @@ -53,9 +53,6 @@ #include #include #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) -#include -#endif #define DEBUG_SUBSYSTEM S_LLITE @@ -605,8 +602,7 @@ int ll_file_mmap(struct file * file, struct vm_area_struct * vma) ll_stats_ops_tally(ll_i2sbi(file->f_dentry->d_inode), LPROC_LL_MAP, 1); rc = generic_file_mmap(file, vma); if (rc == 0) { -#if !defined(HAVE_FILEMAP_POPULATE) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) +#ifndef HAVE_FILEMAP_POPULATE if (!filemap_populate) filemap_populate = vma->vm_ops->populate; #endif