commit | 9d71e15586fd7d274a23dd0bbf54278c86fe263f | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Tue Apr 16 08:21:59 2019 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Tue Apr 16 10:01:57 2019 -0700 |
tree | c9b612cbe1ae9ff88ec1ed53aed310d6c98ba858 | |
parent | 89d139d5ad465e35a9c602421eb1a1ff08ea530d [diff] |
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>