git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
fs
/
autofs4
/
symlink.c
diff --git
a/fs/autofs4/symlink.c
b/fs/autofs4/symlink.c
index
9cc355a
..
c265a66
100644
(file)
--- a/
fs/autofs4/symlink.c
+++ b/
fs/autofs4/symlink.c
@@
-12,21
+12,14
@@
#include "autofs_i.h"
#include "autofs_i.h"
-static int autofs4_readlink(struct dentry *dentry, char *buffer, int buflen)
-{
- struct autofs_info *ino = autofs4_dentry_ino(dentry);
-
- return vfs_readlink(dentry, buffer, buflen, ino->u.symlink);
-}
-
static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct autofs_info *ino = autofs4_dentry_ino(dentry);
static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct autofs_info *ino = autofs4_dentry_ino(dentry);
-
- return
vfs_follow_link(nd, ino->u.symlink)
;
+ nd_set_link(nd, (char *)ino->u.symlink);
+ return
0
;
}
struct inode_operations autofs4_symlink_inode_operations = {
}
struct inode_operations autofs4_symlink_inode_operations = {
- .readlink =
autofs4
_readlink,
+ .readlink =
generic
_readlink,
.follow_link = autofs4_follow_link
};
.follow_link = autofs4_follow_link
};