aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/glock.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 3f45a14009b8..8648409be451 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -1248,10 +1248,8 @@ int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1248 1248
1249void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) 1249void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1250{ 1250{
1251 unsigned int x; 1251 while (num_gh--)
1252 1252 gfs2_glock_dq(&ghs[num_gh]);
1253 for (x = 0; x < num_gh; x++)
1254 gfs2_glock_dq(&ghs[x]);
1255} 1253}
1256 1254
1257/** 1255/**
@@ -1263,10 +1261,8 @@ void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1263 1261
1264void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs) 1262void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs)
1265{ 1263{
1266 unsigned int x; 1264 while (num_gh--)
1267 1265 gfs2_glock_dq_uninit(&ghs[num_gh]);
1268 for (x = 0; x < num_gh; x++)
1269 gfs2_glock_dq_uninit(&ghs[x]);
1270} 1266}
1271 1267
1272void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state) 1268void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state)