Whamcloud - gitweb
Fixed some mistakes for compile in both kernel 2.4 and 2.5
authorshorthair <shorthair>
Tue, 14 Jan 2003 13:10:42 +0000 (13:10 +0000)
committershorthair <shorthair>
Tue, 14 Jan 2003 13:10:42 +0000 (13:10 +0000)
lustre/llite/symlink.c

index 6033a83..649184e 100644 (file)
@@ -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;