]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: push xfs_icreate_args creation out of xfs_create*
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 May 2024 04:10:45 +0000 (21:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 1 Aug 2024 00:09:48 +0000 (17:09 -0700)
commit2956bdfa8fd6a4aa84a53ba8f6f2dd9be65d7c19
treeff0ea091fa1e25854c38340a545b0cd769200667
parentaf54caecee2b6ca2508a6e9359ee3632b8f4952d
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_iops.c