diff options
| author | Dave Chinner <[email protected]> | 2014-06-06 06:02:12 +0000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2014-06-06 06:02:12 +0000 |
| commit | 36de95567f910f5544060f50346d8677ae13ad22 (patch) | |
| tree | 072f4754d9b621182a4526e356cfeb03e6a4f605 /tools/perf/scripts/python/sctop.py | |
| parent | xfs: xfs_readsb needs to check for magic numbers (diff) | |
| download | kernel-36de95567f910f5544060f50346d8677ae13ad22.tar.gz kernel-36de95567f910f5544060f50346d8677ae13ad22.zip | |
xfs: kill xfs_buf_geterror()
Most of the callers are just calling ASSERT(!xfs_buf_geterror())
which means they are checking for bp->b_error == 0. If bp is null in
this case, we will assert fail, and hence it's no different in
result to oopsing because of a null bp. In some cases, errors have
already been checked for or the function returning the buffer can't
return a buffer with an error, so it's just a redundant assert.
Either way, the assert can either be removed.
The other two non-assert callers can just test for a buffer and
error properly.
Signed-off-by: Dave Chinner <[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/sctop.py')
0 files changed, 0 insertions, 0 deletions
