Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70b28aa
)
Fixed some mistakes for compile in both kernel 2.4 and 2.5
author
shorthair
<shorthair>
Tue, 14 Jan 2003 13:10:42 +0000
(13:10 +0000)
committer
shorthair
<shorthair>
Tue, 14 Jan 2003 13:10:42 +0000
(13:10 +0000)
lustre/llite/symlink.c
patch
|
blob
|
history
diff --git
a/lustre/llite/symlink.c
b/lustre/llite/symlink.c
index
6033a83
..
649184e
100644
(file)
--- 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;