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)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 28 Jun 2021 22:15:52 +0000 (00:15 +0200)
commit7e65624d32b6e0429b1d3559e5585657f34f74a1
tree65f0d6eb81fd2e14e9e1e7311dd82db4a04b0421
parentdf2c0cb7f8e8c83e495260ad86df8c5da947f2a7
ceph: allow ceph_put_mds_session to take NULL or ERR_PTR

...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>
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/metric.c