From 423037290957cfd80b596228cc56ea1a6498d31e Mon Sep 17 00:00:00 2001 From: yangsheng Date: Tue, 11 Nov 2008 07:44:22 +0000 Subject: [PATCH] Branch b1_8_gate b=17153 i=adilger, robert.read Remove 2.4 check. Author: tappro CVSooi= --- lustre/obdfilter/filter.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index f9787a5..726f6aa 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -59,10 +59,8 @@ #include #include #include -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) -# include -# include -#endif +#include +#include #include #include @@ -1493,12 +1491,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 = ll_security_inode_unlink(dir, dentry, mnt); if (rc) GOTO(out, rc); -#endif - rc = dir->i_op->unlink(dir, dentry); out: /* need to drop i_mutex before we lose inode reference */ @@ -3826,9 +3821,8 @@ int filter_iocontrol(unsigned int cmd, struct obd_export *exp, void *handle; struct super_block *sb = obd->u.obt.obt_sb; struct inode *inode = sb->s_root->d_inode; - BDEVNAME_DECLARE_STORAGE(tmp); LCONSOLE_WARN("*** setting obd %s device '%s' read-only ***\n", - obd->obd_name, ll_bdevname(sb, tmp)); + obd->obd_name, sb->s_id); handle = fsfilt_start(obd, inode, FSFILT_OP_MKNOD, NULL); if (!IS_ERR(handle)) -- 1.8.3.1