mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	If the trylock-based parent pointer check fails, retain those dirents and check them at the end. This may involve dropping the locks on the file being scanned, so yay. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			743 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			743 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-or-later */
 | 
						|
/*
 | 
						|
 * Copyright (C) 2022-2023 Oracle.  All Rights Reserved.
 | 
						|
 * Author: Darrick J. Wong <djwong@kernel.org>
 | 
						|
 */
 | 
						|
#ifndef __XFS_SCRUB_READDIR_H__
 | 
						|
#define __XFS_SCRUB_READDIR_H__
 | 
						|
 | 
						|
typedef int (*xchk_dirent_fn)(struct xfs_scrub *sc, struct xfs_inode *dp,
 | 
						|
		xfs_dir2_dataptr_t dapos, const struct xfs_name *name,
 | 
						|
		xfs_ino_t ino, void *priv);
 | 
						|
 | 
						|
int xchk_dir_walk(struct xfs_scrub *sc, struct xfs_inode *dp,
 | 
						|
		xchk_dirent_fn dirent_fn, void *priv);
 | 
						|
 | 
						|
int xchk_dir_lookup(struct xfs_scrub *sc, struct xfs_inode *dp,
 | 
						|
		const struct xfs_name *name, xfs_ino_t *ino);
 | 
						|
 | 
						|
int xchk_dir_trylock_for_pptrs(struct xfs_scrub *sc, struct xfs_inode *ip,
 | 
						|
		unsigned int *lockmode);
 | 
						|
 | 
						|
#endif /* __XFS_SCRUB_READDIR_H__ */
 |