From 51863d7dd77dd27a35b12b37c7caf8679903b6ae Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 29 May 2018 22:24:44 -0700 Subject: xfs: grab the per-ag structure whenever relevant Grab and hold the per-AG data across a scrub run whenever relevant. This helps us avoid repeated trips through rcu and the radix tree in the repair code. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner --- fs/xfs/scrub/scrub.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/xfs/scrub/scrub.h') diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h index 2f89a84a0e10..636424d5e2ee 100644 --- a/fs/xfs/scrub/scrub.h +++ b/fs/xfs/scrub/scrub.h @@ -51,6 +51,7 @@ struct xfs_scrub_meta_ops { /* Buffer pointers and btree cursors for an entire AG. */ struct xfs_scrub_ag { xfs_agnumber_t agno; + struct xfs_perag *pag; /* AG btree roots */ struct xfs_buf *agf_bp; -- cgit v1.2.3-58-ga151