]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: push xfs_icreate_args creation out of xfs_create*
authorDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:22:38 +0000 (11:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:36:57 +0000 (11:36 -0700)
commitdfaf884233ba726bf389cbf6f629b3a3a7a93923
tree62a0b57d48afc32093afb62ead2455be0e9cdff0
parente9d2b35bb9d3ff372fad27998fc3969ced3f563d
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