From 021b91611ca861389299126f85d597eb965ff33a Mon Sep 17 00:00:00 2001 From: yangsheng Date: Fri, 2 Nov 2007 04:21:37 +0000 Subject: [PATCH] Branch HEAD b=12568 i=adilger i=scjody Remove 2.4 kernel check from obdfilter/filter.c, obdfilter/lproc_obdfilter.c. --- lustre/ChangeLog | 2 ++ lustre/obdfilter/filter.c | 8 ++------ lustre/obdfilter/lproc_obdfilter.c | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 56745a2..e1ec608 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -23,6 +23,8 @@ Details : Remove 2.5.0 check from quota_check.c, quota_ctl.c, lvfs_linux.c upcall_cache.c in lvfs subsystem. Remove 2.4 kernel check from lproc_osc.c, osc_request.c in osc subsystem. + Remove 2.4 kernel check from filter.c, lproc_obdfilter.c in + obdfilter subsystem. Severity : enhancement Bugzilla : 13690 diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index ea2bd49..3bf974d 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -44,10 +44,8 @@ #include #include #include -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) -# include -# include -#endif +#include +#include #include #include @@ -1528,11 +1526,9 @@ int filter_vfs_unlink(struct inode *dir, struct dentry *dentry) * here) or some other ordering issue. */ DQUOT_INIT(dir); -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) rc = security_inode_unlink(dir, dentry); if (rc) GOTO(out, rc); -#endif rc = dir->i_op->unlink(dir, dentry); out: diff --git a/lustre/obdfilter/lproc_obdfilter.c b/lustre/obdfilter/lproc_obdfilter.c index 9f9c953..f0984fa 100644 --- a/lustre/obdfilter/lproc_obdfilter.c +++ b/lustre/obdfilter/lproc_obdfilter.c @@ -381,7 +381,6 @@ static void brw_stats_show(struct seq_file *seq, struct brw_stats *brw_stats) &brw_stats->hist[BRW_R_DIO_FRAGS], &brw_stats->hist[BRW_W_DIO_FRAGS], 0); -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) display_brw_stats(seq, "disk I/Os in flight", "ios", &brw_stats->hist[BRW_R_RPC_HIST], &brw_stats->hist[BRW_W_RPC_HIST], 0); @@ -397,7 +396,6 @@ static void brw_stats_show(struct seq_file *seq, struct brw_stats *brw_stats) display_brw_stats(seq, "disk I/O size", "ios", &brw_stats->hist[BRW_R_DISK_IOSIZE], &brw_stats->hist[BRW_W_DISK_IOSIZE], 1); -#endif } static int filter_brw_stats_seq_show(struct seq_file *seq, void *v) -- 1.8.3.1