diff options
| author | Christoph Hellwig <hch@lst.de> | 2020-04-27 11:14:59 -0700 |
|---|---|---|
| committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-04 09:03:15 -0700 |
| commit | e968350aadf34c86eedd9cb43f6324263845586b (patch) | |
| tree | 695c59b4fce6f3e6c968c71fd30155d0f960c8ae /tools/perf/scripts/python | |
| parent | xfs: define printk_once variants for xfs messages (diff) | |
| download | linux-e968350aadf34c86eedd9cb43f6324263845586b.tar.gz linux-e968350aadf34c86eedd9cb43f6324263845586b.zip | |
xfs: refactor the buffer cancellation table helpers
Replace the somewhat convoluted use of xlog_peek_buffer_cancelled and
xlog_check_buffer_cancelled with two obvious helpers:
xlog_is_buffer_cancelled, which returns true if there is a buffer in
the cancellation table, and
xlog_put_buffer_cancelled, which also decrements the reference count
of the buffer cancellation table.
Both share a little helper to look up the entry.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
