xfs: grab the per-ag structure whenever relevant
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 05:24:44 +0000 (22:24 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 15:03:14 +0000 (08:03 -0700)
commit51863d7dd77dd27a35b12b37c7caf8679903b6ae
tree462c165bfb2c16e70390f79688244cfa2a1d2abe
parent05edd888d1b21b7c6af10fa3e0cdc1e5b4578493
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 <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/scrub.h