ceph: ensure we have a new cap before continuing in fill_inode
authorJeff Layton <jlayton@kernel.org>
Thu, 5 Dec 2019 13:41:25 +0000 (08:41 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jan 2020 15:53:39 +0000 (16:53 +0100)
commit9a6bed4fe0c8bf57785cbc4db9f86086cb9b193d
treeffef568fe314a8fc6f67462f2500c421c9ecbb83
parent57c219948245cb1e8970040a365058baab450316
ceph: ensure we have a new cap before continuing in fill_inode

If the caller passes in a NULL cap_reservation, and we can't allocate
one then ensure that we fail gracefully.

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