Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b6dddbe authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

rbd: destroy header_oloc in rbd_dev_release()



Purely cosmetic at this point, as rbd doesn't use RADOS namespaces and
hence rbd_dev->header_oloc->pool_ns is always NULL.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent e4d2b16a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3950,6 +3950,7 @@ static void rbd_dev_release(struct device *dev)
	bool need_put = !!rbd_dev->opts;
	bool need_put = !!rbd_dev->opts;


	ceph_oid_destroy(&rbd_dev->header_oid);
	ceph_oid_destroy(&rbd_dev->header_oid);
	ceph_oloc_destroy(&rbd_dev->header_oloc);


	rbd_put_client(rbd_dev->rbd_client);
	rbd_put_client(rbd_dev->rbd_client);
	rbd_spec_put(rbd_dev->spec);
	rbd_spec_put(rbd_dev->spec);