]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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)
committerJeff Layton <jlayton@kernel.org>
Fri, 10 Jan 2020 16:51:04 +0000 (11:51 -0500)
commit706423658b3cabc588bc426b6d258c2805b214a6
treea066d5a0532ec5d0d72cf31cee44bf07f3fb8a2b
parente97be50a25b93850f20516db03fc3f3b5ababe13
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>
fs/ceph/inode.c