diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-10-11 04:09:12 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-16 00:15:32 -0400 |
commit | 3e5daf05a0c7cce36dc2db41933b14b36d2048dc (patch) | |
tree | 6116ce7e400b152594e867b9e4d67bdfe67a414c /fs/xfs/xfs_vnodeops.h | |
parent | c83bfab1faec9c32297d2079c06adaaaea2650d9 (diff) |
[XFS] simplify xfs_create/mknod/symlink prototype
Simplify the prototype for xfs_create/xfs_mkdir/xfs_symlink by not passing
down a bhv_vattr_t that just hogs stack space. Instead pass down the mode
in a mode_t and in case of xfs_create the rdev as a scalar type as well.
SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29794a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.h')
-rw-r--r-- | fs/xfs/xfs_vnodeops.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_vnodeops.h b/fs/xfs/xfs_vnodeops.h index 78c8841fbf9..f36e74f2f0c 100644 --- a/fs/xfs/xfs_vnodeops.h +++ b/fs/xfs/xfs_vnodeops.h | |||
@@ -26,19 +26,19 @@ int xfs_release(struct xfs_inode *ip); | |||
26 | int xfs_inactive(struct xfs_inode *ip); | 26 | int xfs_inactive(struct xfs_inode *ip); |
27 | int xfs_lookup(struct xfs_inode *dp, bhv_vname_t *dentry, | 27 | int xfs_lookup(struct xfs_inode *dp, bhv_vname_t *dentry, |
28 | bhv_vnode_t **vpp); | 28 | bhv_vnode_t **vpp); |
29 | int xfs_create(struct xfs_inode *dp, bhv_vname_t *dentry, | 29 | int xfs_create(struct xfs_inode *dp, bhv_vname_t *dentry, mode_t mode, |
30 | struct bhv_vattr *vap, bhv_vnode_t **vpp, struct cred *credp); | 30 | xfs_dev_t rdev, bhv_vnode_t **vpp, struct cred *credp); |
31 | int xfs_remove(struct xfs_inode *dp, bhv_vname_t *dentry); | 31 | int xfs_remove(struct xfs_inode *dp, bhv_vname_t *dentry); |
32 | int xfs_link(struct xfs_inode *tdp, bhv_vnode_t *src_vp, | 32 | int xfs_link(struct xfs_inode *tdp, bhv_vnode_t *src_vp, |
33 | bhv_vname_t *dentry); | 33 | bhv_vname_t *dentry); |
34 | int xfs_mkdir(struct xfs_inode *dp, bhv_vname_t *dentry, | 34 | int xfs_mkdir(struct xfs_inode *dp, bhv_vname_t *dentry, |
35 | struct bhv_vattr *vap, bhv_vnode_t **vpp, struct cred *credp); | 35 | mode_t mode, bhv_vnode_t **vpp, struct cred *credp); |
36 | int xfs_rmdir(struct xfs_inode *dp, bhv_vname_t *dentry); | 36 | int xfs_rmdir(struct xfs_inode *dp, bhv_vname_t *dentry); |
37 | int xfs_readdir(struct xfs_inode *dp, void *dirent, size_t bufsize, | 37 | int xfs_readdir(struct xfs_inode *dp, void *dirent, size_t bufsize, |
38 | xfs_off_t *offset, filldir_t filldir); | 38 | xfs_off_t *offset, filldir_t filldir); |
39 | int xfs_symlink(struct xfs_inode *dp, bhv_vname_t *dentry, | 39 | int xfs_symlink(struct xfs_inode *dp, bhv_vname_t *dentry, |
40 | struct bhv_vattr *vap, char *target_path, | 40 | char *target_path, mode_t mode, bhv_vnode_t **vpp, |
41 | bhv_vnode_t **vpp, struct cred *credp); | 41 | struct cred *credp); |
42 | int xfs_fid2(struct xfs_inode *ip, fid_t *fidp); | 42 | int xfs_fid2(struct xfs_inode *ip, fid_t *fidp); |
43 | int xfs_rwlock(struct xfs_inode *ip, bhv_vrwlock_t locktype); | 43 | int xfs_rwlock(struct xfs_inode *ip, bhv_vrwlock_t locktype); |
44 | void xfs_rwunlock(struct xfs_inode *ip, bhv_vrwlock_t locktype); | 44 | void xfs_rwunlock(struct xfs_inode *ip, bhv_vrwlock_t locktype); |