summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/scrub.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-04-16 17:21:59 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2019-04-16 19:01:57 +0200
commit9d71e15586fd7d274a23dd0bbf54278c86fe263f (patch)
treec9b612cbe1ae9ff88ec1ed53aed310d6c98ba858 /fs/xfs/scrub/scrub.h
parentxfs: report inode health via bulkstat (diff)
downloadlinux-9d71e15586fd7d274a23dd0bbf54278c86fe263f.tar.xz
linux-9d71e15586fd7d274a23dd0bbf54278c86fe263f.zip
xfs: refactor scrub context initialization
It's a little silly how the memset in scrub context initialization forces us to declare stack variables to preserve context variables across a retry. Since the teardown functions already null out most of the ephemeral state (buffer pointers, btree cursors, etc.), just skip the memset and move the initialization as needed. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
0 files changed, 0 insertions, 0 deletions