From: Ilya Dryomov Date: Fri, 5 Aug 2016 14:15:38 +0000 (+0200) Subject: rbd: destroy header_oloc in rbd_dev_release() X-Git-Tag: v4.14-rc1~2658^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b6dddbe11b13bb00e0f9a1af2021e266811be85;p=platform%2Fkernel%2Flinux-rpi.git 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: Ilya Dryomov --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 1a04af6..07668a6 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -3950,6 +3950,7 @@ static void rbd_dev_release(struct device *dev) bool need_put = !!rbd_dev->opts; ceph_oid_destroy(&rbd_dev->header_oid); + ceph_oloc_destroy(&rbd_dev->header_oloc); rbd_put_client(rbd_dev->rbd_client); rbd_spec_put(rbd_dev->spec);