]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: factor out a xfs_dir_createname_args helper
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jul 2024 23:22:53 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:04 +0000 (17:01 -0700)
commitc201c18fa046712a49fcac31197811759d5132a1
tree6e2836dc0b65a26e74e2d46b39e38294ae75ec60
parent7ae5bcb231fde4a039cc5f008bd63593813799bc
xfs: factor out a xfs_dir_createname_args helper

Source kernel commit: 4d893a40514e9c4ee6e3be48ed1b77efb38c313b

Add a helper to switch between the different directory formats for
creating a directory entry and to handle the XFS_DA_OP_JUSTCHECK flag
based on the passed in ino number field.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
libxfs/xfs_dir2.c
libxfs/xfs_dir2.h