xfs: factor out a xfs_dir_lookup_args helper
authorChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2024 13:16:59 +0000 (15:16 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 26 Apr 2024 05:49:03 +0000 (11:19 +0530)
commit14ee22fef420c864c0869419e54aa4e88f64b4e6
tree98cd75e66707afa3511e0b700fa0a7cee173b972
parent08e012a62de877e77d7d44d5bddace63d760741b
xfs: factor out a xfs_dir_lookup_args helper

Add a helper to switch between the different directory formats for
lookup and to handle the -EEXIST return for a successful lookup.

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/readdir.c