diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-27 23:59:03 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 02:50:13 -0400 |
commit | 804c83c37607efe415774c3a170ad72a789e5992 (patch) | |
tree | f53df9e59968cf16904e7652bca7e2a7cd3da57b /fs/xfs/linux-2.6/xfs_vnode.h | |
parent | 051e7cd44ab8f0f7c2958371485b4a1ff64a8d1b (diff) |
[XFS] stop using uio in the readlink code
Simplify the readlink code to get rid of the last user of uio.
SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29479a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h index 146c84ba6941..bddbdb904234 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.h +++ b/fs/xfs/linux-2.6/xfs_vnode.h | |||
@@ -18,7 +18,6 @@ | |||
18 | #ifndef __XFS_VNODE_H__ | 18 | #ifndef __XFS_VNODE_H__ |
19 | #define __XFS_VNODE_H__ | 19 | #define __XFS_VNODE_H__ |
20 | 20 | ||
21 | struct uio; | ||
22 | struct file; | 21 | struct file; |
23 | struct bhv_vfs; | 22 | struct bhv_vfs; |
24 | struct bhv_vattr; | 23 | struct bhv_vattr; |
@@ -165,8 +164,7 @@ typedef int (*vop_readdir_t)(bhv_desc_t *, void *dirent, size_t bufsize, | |||
165 | xfs_off_t *offset, filldir_t filldir); | 164 | xfs_off_t *offset, filldir_t filldir); |
166 | typedef int (*vop_symlink_t)(bhv_desc_t *, bhv_vname_t *, struct bhv_vattr*, | 165 | typedef int (*vop_symlink_t)(bhv_desc_t *, bhv_vname_t *, struct bhv_vattr*, |
167 | char *, bhv_vnode_t **, struct cred *); | 166 | char *, bhv_vnode_t **, struct cred *); |
168 | typedef int (*vop_readlink_t)(bhv_desc_t *, struct uio *, int, | 167 | typedef int (*vop_readlink_t)(bhv_desc_t *, char *); |
169 | struct cred *); | ||
170 | typedef int (*vop_fsync_t)(bhv_desc_t *, int, struct cred *, | 168 | typedef int (*vop_fsync_t)(bhv_desc_t *, int, struct cred *, |
171 | xfs_off_t, xfs_off_t); | 169 | xfs_off_t, xfs_off_t); |
172 | typedef int (*vop_inactive_t)(bhv_desc_t *, struct cred *); | 170 | typedef int (*vop_inactive_t)(bhv_desc_t *, struct cred *); |
@@ -271,8 +269,8 @@ typedef struct bhv_vnodeops { | |||
271 | VOP(vop_readdir, vp)(VNHEAD(vp),dirent,bufsize,offset,filldir) | 269 | VOP(vop_readdir, vp)(VNHEAD(vp),dirent,bufsize,offset,filldir) |
272 | #define bhv_vop_symlink(dvp,d,vap,tnm,vpp,cr) \ | 270 | #define bhv_vop_symlink(dvp,d,vap,tnm,vpp,cr) \ |
273 | VOP(vop_symlink, dvp)(VNHEAD(dvp),d,vap,tnm,vpp,cr) | 271 | VOP(vop_symlink, dvp)(VNHEAD(dvp),d,vap,tnm,vpp,cr) |
274 | #define bhv_vop_readlink(vp,uiop,fl,cr) \ | 272 | #define bhv_vop_readlink(vp,link) \ |
275 | VOP(vop_readlink, vp)(VNHEAD(vp),uiop,fl,cr) | 273 | VOP(vop_readlink, vp)(VNHEAD(vp), link) |
276 | #define bhv_vop_fsync(vp,f,cr,b,e) VOP(vop_fsync, vp)(VNHEAD(vp),f,cr,b,e) | 274 | #define bhv_vop_fsync(vp,f,cr,b,e) VOP(vop_fsync, vp)(VNHEAD(vp),f,cr,b,e) |
277 | #define bhv_vop_inactive(vp,cr) VOP(vop_inactive, vp)(VNHEAD(vp),cr) | 275 | #define bhv_vop_inactive(vp,cr) VOP(vop_inactive, vp)(VNHEAD(vp),cr) |
278 | #define bhv_vop_release(vp) VOP(vop_release, vp)(VNHEAD(vp)) | 276 | #define bhv_vop_release(vp) VOP(vop_release, vp)(VNHEAD(vp)) |