mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
6efbbdeb14
Add a second callback function to xchk_xattr_walk so that we can do something in between attr leaf blocks. This will be used by the next patch to see if we should flush cached parent pointer updates to constrain memory usage. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
20 lines
675 B
C
20 lines
675 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2022-2024 Oracle. All Rights Reserved.
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
|
*/
|
|
#ifndef __XFS_SCRUB_LISTXATTR_H__
|
|
#define __XFS_SCRUB_LISTXATTR_H__
|
|
|
|
typedef int (*xchk_xattr_fn)(struct xfs_scrub *sc, struct xfs_inode *ip,
|
|
unsigned int attr_flags, const unsigned char *name,
|
|
unsigned int namelen, const void *value, unsigned int valuelen,
|
|
void *priv);
|
|
|
|
typedef int (*xchk_xattrleaf_fn)(struct xfs_scrub *sc, void *priv);
|
|
|
|
int xchk_xattr_walk(struct xfs_scrub *sc, struct xfs_inode *ip,
|
|
xchk_xattr_fn attr_fn, xchk_xattrleaf_fn leaf_fn, void *priv);
|
|
|
|
#endif /* __XFS_SCRUB_LISTXATTR_H__ */
|