]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: split new inode creation into two pieces
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 May 2024 04:10:44 +0000 (21:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:52:32 +0000 (18:52 -0700)
commit5a2e43be2bbaa33a19ef1f80df59e356de84032f
treea4aed2ce087471d861c8c0021208bcfd4b2d4dde
parentb93f55ec95ead7464206508fd2508f0fe6c8aa1f
xfs: split new inode creation into two pieces

There are two parts to initializing a newly allocated inode: setting up
the incore structures, and initializing the new inode core based on the
parent inode and the current user's environment.  The initialization
code is not specific to the kernel, so we would like to share that with
userspace by hoisting it to libxfs.  Therefore, split xfs_icreate into
separate functions to prepare for the next few patches.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/xfs_inode.c