xfs: specify AG in bulk req
Add a new xfs_bulk_ireq flag to constrain the iteration to a single AG. If the passed-in startino value is zero then we start with the first inode in the AG that the user passes in; otherwise, we iterate only within the same AG as the passed-in inode. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Collins <allison.henderson@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -12,8 +12,12 @@ struct xfs_ibulk {
|
||||
xfs_ino_t startino; /* start with this inode */
|
||||
unsigned int icount; /* number of elements in ubuffer */
|
||||
unsigned int ocount; /* number of records returned */
|
||||
unsigned int flags; /* see XFS_IBULK_FLAG_* */
|
||||
};
|
||||
|
||||
/* Only iterate within the same AG as startino */
|
||||
#define XFS_IBULK_SAME_AG (XFS_IWALK_SAME_AG)
|
||||
|
||||
/* Return value that means we want to abort the walk. */
|
||||
#define XFS_IBULK_ABORT (XFS_IWALK_ABORT)
|
||||
|
||||
|
Reference in New Issue
Block a user