]> git.baikalelectronics.ru Git - kernel.git/commit
fs: make unlazy_walk() error handling consistent
authorJens Axboe <axboe@kernel.dk>
Thu, 17 Dec 2020 16:19:08 +0000 (09:19 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Jan 2021 16:10:49 +0000 (11:10 -0500)
commit436ec1729a89ac528aa225258dabf3020311b2fd
tree9756d804c5a01f327ccc24ca60fa228ff5667f23
parente5d2324462b7c4ceb0cbdf15da74b042fc36aa2c
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>
fs/namei.c