summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/scrub.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-01-05 17:43:29 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:17 -0700
commitdadb7fb15247488e4d6a0a1bf67a05d50a266970 (patch)
treed0fbb3d26658b672ca86796f5071bb6870980d70 /fs/xfs/scrub/scrub.h
parent6f0ff758be60cec0c288f1f92c94c13452ff203b (diff)
xfs: implement online scrubbing of rtsummary infoscrub-rtsummary_2021-03-25
Finish the realtime summary scrubber by adding the functions we need to compute a fresh copy of the rtsummary info and comparing it to the copy on disk. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
-rw-r--r--fs/xfs/scrub/scrub.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h
index 459831fd54bd..cec7f58cf5ed 100644
--- a/fs/xfs/scrub/scrub.h
+++ b/fs/xfs/scrub/scrub.h
@@ -60,7 +60,14 @@ struct xfs_scrub {
struct xfs_trans *tp;
struct file *filp;
struct xfs_inode *ip;
+
+ /* Kernel memory buffer used by scrubbers; freed at teardown. */
void *buf;
+
+ /* xfile used by the scrubbers; freed at teardown. */
+ struct xfile *xfile;
+
+ /* Lock flags for @ip. */
uint ilock_flags;
/* See the XCHK/XREP state flags below. */