ceph: fix error handling in ceph_get_caps()
authorYan, Zheng <zyan@redhat.com>
Mon, 20 May 2019 01:50:09 +0000 (09:50 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 5 Jun 2019 18:34:39 +0000 (20:34 +0200)
commit7b2f936fc8282ab56d4d21247f2f9c21607c085c
treebc9dba2c3671d20c1753ffae4065922cc5f53bda
parent3e1d0452edceebb903d23db53201013c940bf000
ceph: fix error handling in ceph_get_caps()

The function return 0 even when interrupted or try_get_cap_refs()
return error.

Fixes: 1199d7da2d ("ceph: simplify arguments and return semantics of try_get_cap_refs")
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c