vserver 1.9.5.x5
[linux-2.6.git] / fs / xfs / linux-2.6 / xfs_iops.c
index 069dec8..d20c881 100644 (file)
@@ -369,33 +369,6 @@ linvfs_rename(
        return 0;
 }
 
-STATIC int
-linvfs_readlink(
-       struct dentry   *dentry,
-       char            __user *buf,
-       int             size)
-{
-       vnode_t         *vp = LINVFS_GET_VP(dentry->d_inode);
-       uio_t           uio;
-       iovec_t         iov;
-       int             error;
-
-       iov.iov_base = buf;
-       iov.iov_len = size;
-
-       uio.uio_iov = &iov;
-       uio.uio_offset = 0;
-       uio.uio_segflg = UIO_USERSPACE;
-       uio.uio_resid = size;
-       uio.uio_iovcnt = 1;
-
-       VOP_READLINK(vp, &uio, 0, NULL, error);
-       if (error)
-               return -error;
-
-       return (size - uio.uio_resid);
-}
-
 /*
  * careful here - this function can get called recursively, so
  * we need to be very careful about how much stack we use.
@@ -721,7 +694,7 @@ struct inode_operations linvfs_dir_inode_operations = {
 };
 
 struct inode_operations linvfs_symlink_inode_operations = {
-       .readlink               = linvfs_readlink,
+       .readlink               = generic_readlink,
        .follow_link            = linvfs_follow_link,
        .put_link               = linvfs_put_link,
        .permission             = linvfs_permission,