GFS2: Fix gl_object warnings
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 30 Aug 2017 12:46:24 +0000 (07:46 -0500)
committerBob Peterson <rpeterso@redhat.com>
Wed, 30 Aug 2017 13:14:27 +0000 (08:14 -0500)
The following cleanup is needed to avoid spilling the syslog with
false warnings.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/rgrp.c

index 29fbeee36fa663ee4afc1d179edad27307333938..95b2a57ded3300a5c2d8b4d351bdfebc04aa151c 100644 (file)
@@ -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);
                }