diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:07:31 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:55:03 -0700 |
commit | 76f02da098237ab19dad3e279e80f1d5156cb4f1 (patch) | |
tree | 60ca864a8e9db9f3bf02de6e803b65fc237f89c3 /fs/xfs/xfs_inode.h | |
parent | 851502f97b6e1bd26700816405a368c8e1080fe5 (diff) |
xfs: push xfs_icreate_args creation out of xfs_create*
Move the initialization of the xfs_icreate_args structure out of
xfs_create and xfs_create_tempfile into their callers so that we can set
the new inode's attributes in one place and pass that through instead of
open coding the collection of attributes all over the code.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 5eb4dd5ccd6d..47c025a8984f 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -409,12 +409,11 @@ int xfs_release(struct xfs_inode *ip); void xfs_inactive(struct xfs_inode *ip); int xfs_lookup(struct xfs_inode *dp, struct xfs_name *name, struct xfs_inode **ipp, struct xfs_name *ci_name); -int xfs_create(struct user_namespace *mnt_userns, - struct xfs_inode *dp, struct xfs_name *name, - umode_t mode, dev_t rdev, bool need_xattr, +int xfs_create(struct xfs_inode *dp, struct xfs_name *name, + const struct xfs_icreate_args *iargs, struct xfs_inode **ipp); -int xfs_create_tmpfile(struct user_namespace *mnt_userns, - struct xfs_inode *dp, umode_t mode, +int xfs_create_tmpfile(struct xfs_inode *dp, + const struct xfs_icreate_args *iargs, struct xfs_inode **ipp); int xfs_remove(struct xfs_inode *dp, struct xfs_name *name, struct xfs_inode *ip); |