Skip to content

Commit 15f2547

Browse files
AstralBobagruenba
authored andcommitted
gfs2: Allow ASPACE glocks to also have an lvb
Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 9cb1fd0 commit 15f2547

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎fs/gfs2/glock.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,11 @@ static void gfs2_glock_dealloc(struct rcu_head *rcu)
125125
{
126126
struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu);
127127

128-
if (gl->gl_ops->go_flags & GLOF_ASPACE) {
128+
kfree(gl->gl_lksb.sb_lvbptr);
129+
if (gl->gl_ops->go_flags & GLOF_ASPACE)
129130
kmem_cache_free(gfs2_glock_aspace_cachep, gl);
130-
} else {
131-
kfree(gl->gl_lksb.sb_lvbptr);
131+
else
132132
kmem_cache_free(gfs2_glock_cachep, gl);
133-
}
134133
}
135134

136135
/**

0 commit comments

Comments
 (0)