|
@@ -1248,10 +1248,8 @@ int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs)
|
|
|
|
|
|
void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
|
|
|
{
|
|
|
- unsigned int x;
|
|
|
-
|
|
|
- for (x = 0; x < num_gh; x++)
|
|
|
- gfs2_glock_dq(&ghs[x]);
|
|
|
+ while (num_gh--)
|
|
|
+ gfs2_glock_dq(&ghs[num_gh]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1263,10 +1261,8 @@ void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
|
|
|
|
|
|
void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs)
|
|
|
{
|
|
|
- unsigned int x;
|
|
|
-
|
|
|
- for (x = 0; x < num_gh; x++)
|
|
|
- gfs2_glock_dq_uninit(&ghs[x]);
|
|
|
+ while (num_gh--)
|
|
|
+ gfs2_glock_dq_uninit(&ghs[num_gh]);
|
|
|
}
|
|
|
|
|
|
void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state)
|