ceph: don't use -ESTALE as special return code in try_get_cap_refs
authorJeff Layton <jlayton@kernel.org>
Tue, 7 Sep 2021 17:54:34 +0000 (13:54 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Nov 2021 02:29:51 +0000 (03:29 +0100)
commit8006daff5f94b157ab1df7c6eb1b55fc470d0d24
tree16505f39e85e176a9759c9d77856883151276aa8
parent6407fbb9c3cb5b89361ca95afc62090b933c3fb5
ceph: don't use -ESTALE as special return code in try_get_cap_refs

In some cases, we may want to return -ESTALE if it ends up that we're
dealing with an inode that no longer exists. Switch to using -EUCLEAN as
the "special" error return.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c