b=12568
i=adilger
i=scjody
Remove 2.4 kernel check from obdfilter/filter.c, obdfilter/lproc_obdfilter.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.
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
Severity : enhancement
Bugzilla : 13690
#include <linux/init.h>
#include <linux/version.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/version.h>
#include <linux/sched.h>
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
-# include <linux/mount.h>
-# include <linux/buffer_head.h>
-#endif
+#include <linux/mount.h>
+#include <linux/buffer_head.h>
#include <obd_class.h>
#include <obd_lov.h>
#include <obd_class.h>
#include <obd_lov.h>
* here) or some other ordering issue. */
DQUOT_INIT(dir);
* 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);
rc = security_inode_unlink(dir, dentry);
if (rc)
GOTO(out, rc);
rc = dir->i_op->unlink(dir, dentry);
out:
rc = dir->i_op->unlink(dir, dentry);
out:
&brw_stats->hist[BRW_R_DIO_FRAGS],
&brw_stats->hist[BRW_W_DIO_FRAGS], 0);
&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);
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);
display_brw_stats(seq, "disk I/O size", "ios",
&brw_stats->hist[BRW_R_DISK_IOSIZE],
&brw_stats->hist[BRW_W_DISK_IOSIZE], 1);
display_brw_stats(seq, "disk I/O size", "ios",
&brw_stats->hist[BRW_R_DISK_IOSIZE],
&brw_stats->hist[BRW_W_DISK_IOSIZE], 1);
}
static int filter_brw_stats_seq_show(struct seq_file *seq, void *v)
}
static int filter_brw_stats_seq_show(struct seq_file *seq, void *v)