summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
authorDarrick J. Wong2019-07-04 05:36:28 +0200
committerDarrick J. Wong2019-07-04 16:52:23 +0200
commit13d59a2a61cbbb4cda13a0cba6d4d1fc537f5dd4 (patch)
tree0870cf2844af43ee8e2c30099c748c1f8ce74e90 /fs/xfs/xfs_itable.c
parentxfs: wire up the v5 inumbers ioctl (diff)
downloadkernel-qcow2-linux-13d59a2a61cbbb4cda13a0cba6d4d1fc537f5dd4.tar.gz
kernel-qcow2-linux-13d59a2a61cbbb4cda13a0cba6d4d1fc537f5dd4.tar.xz
kernel-qcow2-linux-13d59a2a61cbbb4cda13a0cba6d4d1fc537f5dd4.zip
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>
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r--fs/xfs/xfs_itable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 687c873fa635..cda8ae94480c 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -247,8 +247,8 @@ xfs_bulkstat(
if (!bc.buf)
return -ENOMEM;
- error = xfs_iwalk(breq->mp, NULL, breq->startino, xfs_bulkstat_iwalk,
- breq->icount, &bc);
+ error = xfs_iwalk(breq->mp, NULL, breq->startino, breq->flags,
+ xfs_bulkstat_iwalk, breq->icount, &bc);
kmem_free(bc.buf);
@@ -367,7 +367,7 @@ xfs_inumbers(
if (xfs_bulkstat_already_done(breq->mp, breq->startino))
return 0;
- error = xfs_inobt_walk(breq->mp, NULL, breq->startino,
+ error = xfs_inobt_walk(breq->mp, NULL, breq->startino, breq->flags,
xfs_inumbers_walk, breq->icount, &ic);
/*