|
@@ -180,15 +180,6 @@ static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl)
|
|
return gl->gl_state == LM_ST_SHARED;
|
|
return gl->gl_state == LM_ST_SHARED;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl)
|
|
|
|
-{
|
|
|
|
- int ret;
|
|
|
|
- spin_lock(&gl->gl_spin);
|
|
|
|
- ret = test_bit(GLF_DEMOTE, &gl->gl_flags);
|
|
|
|
- spin_unlock(&gl->gl_spin);
|
|
|
|
- return ret;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
int gfs2_glock_get(struct gfs2_sbd *sdp,
|
|
int gfs2_glock_get(struct gfs2_sbd *sdp,
|
|
u64 number, const struct gfs2_glock_operations *glops,
|
|
u64 number, const struct gfs2_glock_operations *glops,
|
|
int create, struct gfs2_glock **glp);
|
|
int create, struct gfs2_glock **glp);
|