• Jens Axboe's avatar
    fs: make unlazy_walk() error handling consistent · e36cffed
    Jens Axboe authored
    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: default avatarJens Axboe <axboe@kernel.dk>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    e36cffed
namei.c 120 KB