Skip to contentSkip to conversation

GFS2: Small cleanup

PATCH New Bob Peterson 1 participant 1 message Jan 16, 2014 1 message not in the archive GFS2 file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 GFS2: Small cleanup

Hi,

This is a small cleanup to function gfs2_rgrp_go_lock so that it uses rgd instead of its more complicated twin.

Regards,

Bob Peterson
Red Hat File Systems

---

fs/gfs2/rgrp.c +1 -1
index 183cf0f..7ea884a 100644
@@ -1199,7 +1199,7 @@ int gfs2_rgrp_go_lock(struct gfs2_holder *gh)
 
 	if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb)
 		return 0;
-	return gfs2_rgrp_bh_get((struct gfs2_rgrpd *)gh->gh_gl->gl_object);
+	return gfs2_rgrp_bh_get(rgd);
 }
 
 /**