aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/libxfs/xfs_dir2.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-04-25 15:17:00 +0200
committerChandan Babu R <chandanbabu@kernel.org>2024-04-26 11:19:03 +0530
commit4d893a40514e9c4ee6e3be48ed1b77efb38c313b (patch)
tree130677a85995233ddccb90a3db5eace6e9b9a29d /fs/xfs/libxfs/xfs_dir2.h
parentxfs: factor out a xfs_dir_lookup_args helper (diff)
downloadwireguard-linux-4d893a40514e9c4ee6e3be48ed1b77efb38c313b.tar.xz
wireguard-linux-4d893a40514e9c4ee6e3be48ed1b77efb38c313b.zip
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.h')
-rw-r--r--fs/xfs/libxfs/xfs_dir2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.h b/fs/xfs/libxfs/xfs_dir2.h
index 982c2249bfa3..f5361dd7b90a 100644
--- a/fs/xfs/libxfs/xfs_dir2.h
+++ b/fs/xfs/libxfs/xfs_dir2.h
@@ -67,6 +67,7 @@ extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
struct xfs_name *name);
int xfs_dir_lookup_args(struct xfs_da_args *args);
+int xfs_dir_createname_args(struct xfs_da_args *args);
/*
* Direct call from the bmap code, bypassing the generic directory layer.