aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2020-05-16 10:19:29 -0700
committerDarrick J. Wong <[email protected]>2020-05-19 09:40:58 -0700
commit5fd68bdb5a87c929fff5f7bbd947034368f36f4f (patch)
treec72e5927a34957bf09dc4b177c334ad9e9570617 /tools/perf/scripts/python/export-to-sqlite.py
parent4b516ff4e772993a99fc9bf36503d23ce5bd5ba9 (diff)
xfs: clean up xchk_bmap_check_rmaps usage of XFS_IFORK_Q
XFS_IFORK_Q is supposed to be a predicate, not a function returning a value. Its usage is in xchk_bmap_check_rmaps is incorrect, but that function only cares about whether or not the "size" of the data is zero or not. Convert that logic to use a proper boolean, and teach the caller to skip the call entirely if the end result would be that we'd do nothing anyway. This avoids a crash later in this series. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> [hch: generalized the NULL ifor check] Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Brian Foster <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions