[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>
This commit is contained in:

committed by
Tim Shimmin

parent
c83bfab1fa
commit
3e5daf05a0
@@ -704,7 +704,7 @@ xfs_acl_vtoacl(
|
||||
int
|
||||
xfs_acl_inherit(
|
||||
bhv_vnode_t *vp,
|
||||
bhv_vattr_t *vap,
|
||||
mode_t mode,
|
||||
xfs_acl_t *pdaclp)
|
||||
{
|
||||
xfs_acl_t *cacl;
|
||||
@@ -732,7 +732,7 @@ xfs_acl_inherit(
|
||||
return ENOMEM;
|
||||
|
||||
memcpy(cacl, pdaclp, sizeof(xfs_acl_t));
|
||||
xfs_acl_filter_mode(vap->va_mode, cacl);
|
||||
xfs_acl_filter_mode(mode, cacl);
|
||||
xfs_acl_setmode(vp, cacl, &basicperms);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user