projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7f4b36f
)
lustre: generic_readlink() is just fine there, TYVM...
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 14 Mar 2014 16:54:25 +0000
(12:54 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 2 Apr 2014 03:19:15 +0000
(23:19 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/lustre/lustre/llite/symlink.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/llite/symlink.c
b/drivers/staging/lustre/lustre/llite/symlink.c
index
ab06891
..
80d48b5
100644
(file)
--- a/
drivers/staging/lustre/lustre/llite/symlink.c
+++ b/
drivers/staging/lustre/lustre/llite/symlink.c
@@
-115,27
+115,6
@@
failed:
return rc;
}
return rc;
}
-static int ll_readlink(struct dentry *dentry, char *buffer, int buflen)
-{
- struct inode *inode = dentry->d_inode;
- struct ptlrpc_request *request;
- char *symname;
- int rc;
-
- CDEBUG(D_VFSTRACE, "VFS Op\n");
-
- ll_inode_size_lock(inode);
- rc = ll_readlink_internal(inode, &request, &symname);
- if (rc)
- GOTO(out, rc);
-
- rc = vfs_readlink(dentry, buffer, buflen, symname);
- out:
- ptlrpc_req_finished(request);
- ll_inode_size_unlock(inode);
- return rc;
-}
-
static void *ll_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct inode *inode = dentry->d_inode;
static void *ll_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct inode *inode = dentry->d_inode;
@@
-175,7
+154,7
@@
static void ll_put_link(struct dentry *dentry, struct nameidata *nd, void *cooki
}
struct inode_operations ll_fast_symlink_inode_operations = {
}
struct inode_operations ll_fast_symlink_inode_operations = {
- .readlink =
ll
_readlink,
+ .readlink =
generic
_readlink,
.setattr = ll_setattr,
.follow_link = ll_follow_link,
.put_link = ll_put_link,
.setattr = ll_setattr,
.follow_link = ll_follow_link,
.put_link = ll_put_link,