diff options
author | Darrick J. Wong <[email protected]> | 2018-10-18 17:20:30 +1100 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2018-10-18 17:20:30 +1100 |
commit | 1aff5696f3e03099a4a3e9a0d965ef9b345265a6 (patch) | |
tree | 5362c0bf508f2ca94c3b6ca00f953ed8c16b98e8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1002ff45eff5cb70b0f2da28df488c789af2aeab (diff) |
xfs: always assign buffer verifiers when one is provided
If a caller supplies buffer ops when trying to read a buffer and the
buffer doesn't already have buf ops assigned, ensure that the ops are
assigned to the buffer and the verifier is run on that buffer.
Note that current XFS code is careful to assign buffer ops after a
xfs_{trans_,}buf_read call in which ops were not supplied. However, we
should apply ops defensively in case there is ever a coding mistake; and
an upcoming repair patch will need to be able to read a buffer without
assigning buf ops.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions