]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: split new inode creation into two pieces
authorDarrick J. Wong <djwong@kernel.org>
Tue, 7 Mar 2023 03:54:41 +0000 (19:54 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:29 +0000 (15:03 -0800)
commit1a0e5fdf292e5bb124a652d0fb5844409d04f726
tree21817da382a37a8d915fc87a3a8aaacbc6326f4d
parentb21e8ca5b9081c7c89116f0c30f60db5c887a48b
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