]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: split new inode creation into two pieces
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:34 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:46:42 +0000 (18:46 -0700)
commitab417ddaa574dc690de577a2240af3cb3599a30e
tree1f008767b739356eeb1b58da191c5f3d567c4668
parentd4ccb447f25cd759bd17dba433be1e7ba1956366
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>
libxfs/inode.c
libxfs/xfs_ialloc.c