]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: split new inode creation into two pieces
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:12:00 +0000 (18:12 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commit02df725889c09d1a576f440a6d3819996b8def6c
tree0d678490ae7682ac1b91ea1886d2b029dcd9f741
parent66ecea3e41d2c0a7ec3ad8ff3e7b7f20e4c48b4c
xfs: split new inode creation into two pieces

Source kernel commit: 38fd3d6a956f1b104f11cd6eee116c54bfe458c4

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>
libxfs/xfs_ialloc.c