diff options
-rw-r--r-- | drivers/staging/lustre/lustre/llite/symlink.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/staging/lustre/lustre/llite/symlink.c b/drivers/staging/lustre/lustre/llite/symlink.c index ab06891f7fc7..80d48b5ae247 100644 --- a/drivers/staging/lustre/lustre/llite/symlink.c +++ b/drivers/staging/lustre/lustre/llite/symlink.c | |||
@@ -115,27 +115,6 @@ failed: | |||
115 | return rc; | 115 | return rc; |
116 | } | 116 | } |
117 | 117 | ||
118 | static int ll_readlink(struct dentry *dentry, char *buffer, int buflen) | ||
119 | { | ||
120 | struct inode *inode = dentry->d_inode; | ||
121 | struct ptlrpc_request *request; | ||
122 | char *symname; | ||
123 | int rc; | ||
124 | |||
125 | CDEBUG(D_VFSTRACE, "VFS Op\n"); | ||
126 | |||
127 | ll_inode_size_lock(inode); | ||
128 | rc = ll_readlink_internal(inode, &request, &symname); | ||
129 | if (rc) | ||
130 | GOTO(out, rc); | ||
131 | |||
132 | rc = vfs_readlink(dentry, buffer, buflen, symname); | ||
133 | out: | ||
134 | ptlrpc_req_finished(request); | ||
135 | ll_inode_size_unlock(inode); | ||
136 | return rc; | ||
137 | } | ||
138 | |||
139 | static void *ll_follow_link(struct dentry *dentry, struct nameidata *nd) | 118 | static void *ll_follow_link(struct dentry *dentry, struct nameidata *nd) |
140 | { | 119 | { |
141 | struct inode *inode = dentry->d_inode; | 120 | struct inode *inode = dentry->d_inode; |
@@ -175,7 +154,7 @@ static void ll_put_link(struct dentry *dentry, struct nameidata *nd, void *cooki | |||
175 | } | 154 | } |
176 | 155 | ||
177 | struct inode_operations ll_fast_symlink_inode_operations = { | 156 | struct inode_operations ll_fast_symlink_inode_operations = { |
178 | .readlink = ll_readlink, | 157 | .readlink = generic_readlink, |
179 | .setattr = ll_setattr, | 158 | .setattr = ll_setattr, |
180 | .follow_link = ll_follow_link, | 159 | .follow_link = ll_follow_link, |
181 | .put_link = ll_put_link, | 160 | .put_link = ll_put_link, |