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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Sep 2021 12:08:58 +0000 (14:08 +0200)
commit8193ad306ea0005bbe1f2f8fc600ab270d27c8dd
tree33ba2f85c31acff8be36a5bf59a0bd5d2000a86d
parent41aa215734868ba7cb195e2cc5f00cdba5bd1578
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