]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xfs: refactor iwalk code to handle walking inobt records
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Jul 2019 16:39:43 +0000 (09:39 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Jul 2019 16:40:06 +0000 (09:40 -0700)
commit04b8fba2e1bf1d767af6579d5f9a25c480257d40
tree4d97e3fc3f03b3521e8948e7212a6b26a8e32996
parent2b5eb826011b48122a52085ab8f5ddb72749fc60
xfs: refactor iwalk code to handle walking inobt records

Refactor xfs_iwalk_ag_start and xfs_iwalk_ag so that the bits that are
particular to bulkstat (trimming the start irec, starting inode
readahead, and skipping empty groups) can be controlled via flags in the
iwag structure.

This enables us to add a new function to walk all inobt records which
will be used for the new INUMBERS implementation in the next patch.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_iwalk.c
fs/xfs/xfs_iwalk.h