ceph: allow ceph_put_mds_session to take NULL or ERR_PTR
authorJeff Layton <jlayton@kernel.org>
Wed, 9 Jun 2021 18:09:52 +0000 (14:09 -0400)
committerDom Cobley <popcornmix@gmail.com>
Thu, 14 Oct 2021 11:33:02 +0000 (12:33 +0100)
commit077d5c9e2173b2c776890502ce8f03244a419fe1
tree7678ccd4baa20f34a8af6b3c12ad415fce90053e
parentb5ded147b97c154b2f2e6082953b649fd2828f1e
ceph: allow ceph_put_mds_session to take NULL or ERR_PTR

[ Upstream commit 7e65624d32b6e0429b1d3559e5585657f34f74a1 ]

...to simplify some error paths.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luis Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/metric.c