summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-07-02 09:39:40 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-07-02 09:40:05 -0700
commit2810bd6840e46306c110f4b76441a987756efe6c (patch)
treeab02deb9d3267ed3823c02ebd185fa422f156c3b /fs/xfs/xfs_ioctl.h
parentf16fe3ecde6237256eeacb3cd582217ffe62c647 (diff)
downloadlinux-2810bd6840e46306c110f4b76441a987756efe6c.tar.gz
linux-2810bd6840e46306c110f4b76441a987756efe6c.tar.xz
xfs: convert bulkstat to new iwalk infrastructure
Create a new ibulk structure incore to help us deal with bulk inode stat state tracking and then convert the bulkstat code to use the new iwalk iterator. This disentangles inode walking from bulk stat control for simpler code and enables us to isolate the formatter functions to the ioctl handling code. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl.h')
-rw-r--r--fs/xfs/xfs_ioctl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ioctl.h b/fs/xfs/xfs_ioctl.h
index 4b17f67c888a..f32c8aadfeba 100644
--- a/fs/xfs/xfs_ioctl.h
+++ b/fs/xfs/xfs_ioctl.h
@@ -77,4 +77,9 @@ xfs_set_dmattrs(
uint evmask,
uint16_t state);
+struct xfs_ibulk;
+struct xfs_bstat;
+
+int xfs_bulkstat_one_fmt(struct xfs_ibulk *breq, const struct xfs_bstat *bstat);
+
#endif