xfs: factor out a xfs_dir_createname_args helper
authorChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2024 13:17:00 +0000 (15:17 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 26 Apr 2024 05:49:03 +0000 (11:19 +0530)
commit4d893a40514e9c4ee6e3be48ed1b77efb38c313b
tree130677a85995233ddccb90a3db5eace6e9b9a29d
parent14ee22fef420c864c0869419e54aa4e88f64b4e6
xfs: factor out a xfs_dir_createname_args helper

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>
fs/xfs/libxfs/xfs_dir2.c
fs/xfs/libxfs/xfs_dir2.h
fs/xfs/scrub/dir_repair.c