]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: clean up error checking and return of _lookup_parent 28324/head
authorJeff Layton <jlayton@redhat.com>
Thu, 30 May 2019 19:56:53 +0000 (15:56 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 3 Jun 2019 20:57:41 +0000 (16:57 -0400)
commit3ade7c046c6c5eaf20517d0713a805a681128831
tree308d05bbebc5c2814ca60d08e3941cfaa2da5b57
parent5c419b64755c200d43b60d1b435f09a4e5b17f7e
client: clean up error checking and return of _lookup_parent

ll_lookup_inode can end up getting back 0 from _lookup_parent,
without zeroing out the parent pointer, which ends up remaining
uninitialized.

Fix this by moving most of the sanity checks in _lookup_parent
into ll_lookup_inode, and only have it issue the call to the MDS.

This also allows us to do the checks in a more sane order.

Fixes: http://tracker.ceph.com/issues/40085
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc