From: Andreas Gruenbacher Date: Wed, 30 Aug 2017 12:46:24 +0000 (-0500) Subject: GFS2: Fix gl_object warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7023a0b16f66a2f1358c95989d23142d8191fd6e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git GFS2: Fix gl_object warnings The following cleanup is needed to avoid spilling the syslog with false warnings. Signed-off-by: Andreas Gruenbacher Signed-off-by: Bob Peterson --- diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 29fbeee36fa6..95b2a57ded33 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -705,7 +705,7 @@ void gfs2_clear_rgrpd(struct gfs2_sbd *sdp) rb_erase(n, &sdp->sd_rindex_tree); if (gl) { - glock_set_object(gl, NULL); + glock_clear_object(gl, rgd); gfs2_glock_put(gl); }