diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-10-29 11:58:09 -0400 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2015-10-29 13:57:48 -0400 |
commit | f3dd1649122b9e73f869e5304d5fa8554e128b7a (patch) | |
tree | d6e75c45ea5250f7dc483c51b08cd1b78f40fa1d /fs/gfs2/rgrp.c | |
parent | 491e94f790982bec5a1334dd3db2708de3724bdf (diff) |
gfs2: Remove gl_spin define
Commit e66cf161 replaced the gl_spin spinlock in struct gfs2_glock with a
gl_lockref lockref and defined gl_spin as gl_lockref.lock (the spinlock in
gl_lockref). Remove that define to make the references to gl_lockref.lock more
obvious.
Signed-off-by: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 475985d14758..d29dd0cec914 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -729,9 +729,9 @@ void gfs2_clear_rgrpd(struct gfs2_sbd *sdp) | |||
729 | rb_erase(n, &sdp->sd_rindex_tree); | 729 | rb_erase(n, &sdp->sd_rindex_tree); |
730 | 730 | ||
731 | if (gl) { | 731 | if (gl) { |
732 | spin_lock(&gl->gl_spin); | 732 | spin_lock(&gl->gl_lockref.lock); |
733 | gl->gl_object = NULL; | 733 | gl->gl_object = NULL; |
734 | spin_unlock(&gl->gl_spin); | 734 | spin_unlock(&gl->gl_lockref.lock); |
735 | gfs2_glock_add_to_lru(gl); | 735 | gfs2_glock_add_to_lru(gl); |
736 | gfs2_glock_put(gl); | 736 | gfs2_glock_put(gl); |
737 | } | 737 | } |