From: shorthair Date: Tue, 14 Jan 2003 13:10:42 +0000 (+0000) Subject: Fixed some mistakes for compile in both kernel 2.4 and 2.5 X-Git-Tag: v1_7_100~1^57~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e99b51fc6e0e8d9510c93f75b6ca014662313203;p=fs%2Flustre-release.git Fixed some mistakes for compile in both kernel 2.4 and 2.5 --- diff --git a/lustre/llite/symlink.c b/lustre/llite/symlink.c index 6033a83..649184e 100644 --- a/lustre/llite/symlink.c +++ b/lustre/llite/symlink.c @@ -83,6 +83,7 @@ static int ll_readlink(struct dentry *dentry, char *buffer, int buflen) RETURN(rc); } +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) static int ll_follow_link(struct dentry *dentry, struct nameidata *nd, struct lookup_intent *it) { @@ -118,8 +119,7 @@ static int ll_follow_link(struct dentry *dentry, struct nameidata *nd, RETURN(rc); } - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) +#else static int ll_follow_link(struct dentry *dentry, struct nameidata *nd) { struct inode *inode = dentry->d_inode;