X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fxfs%2Flinux-2.6%2Fxfs_iops.c;h=d20c8816f9750a9a576db5753769602b89798cb9;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=069dec8448ef31f93596aba51a62320cf68a4776;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 069dec844..d20c8816f 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c @@ -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,