diff options
author | 2020-12-17 09:19:08 -0700 | |
---|---|---|
committer | 2021-01-04 11:10:49 -0500 | |
commit | e36cffed20a324e116f329a94061ae30dd26fb51 (patch) | |
tree | 9756d804c5a01f327ccc24ca60fa228ff5667f23 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs/namei.c: Remove unlikely of status being -ECHILD in lookup_fast() (diff) | |
download | wireguard-linux-e36cffed20a324e116f329a94061ae30dd26fb51.tar.xz wireguard-linux-e36cffed20a324e116f329a94061ae30dd26fb51.zip |
fs: make unlazy_walk() error handling consistent
Most callers check for non-zero return, and assume it's -ECHILD (which
it always will be). One caller uses the actual error return. Clean this
up and make it fully consistent, by having unlazy_walk() return a bool
instead. Rename it to try_to_unlazy() and return true on success, and
failure on error. That's easier to read.
No functional changes in this patch.
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions