Loading fs/gfs2/glock.h +0 −9 Original line number Diff line number Diff line Loading @@ -180,15 +180,6 @@ static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl) 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, u64 number, const struct gfs2_glock_operations *glops, int create, struct gfs2_glock **glp); Loading fs/gfs2/quota.c +5 −8 Original line number Diff line number Diff line Loading @@ -843,9 +843,8 @@ static int do_glock(struct gfs2_quota_data *qd, int force_refresh, if (force_refresh || qd->qd_qb.qb_magic != cpu_to_be32(GFS2_MAGIC)) { loff_t pos; gfs2_glock_dq_uninit(q_gh); error = gfs2_glock_nq_init(qd->qd_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, q_gh); error = gfs2_glock_nq_init(qd->qd_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, q_gh); if (error) return error; Loading @@ -871,12 +870,10 @@ static int do_glock(struct gfs2_quota_data *qd, int force_refresh, qlvb->qb_value = cpu_to_be64(q.qu_value); qd->qd_qb = *qlvb; if (gfs2_glock_is_blocking(qd->qd_gl)) { gfs2_glock_dq_uninit(q_gh); force_refresh = 0; goto restart; } } return 0; Loading Loading
fs/gfs2/glock.h +0 −9 Original line number Diff line number Diff line Loading @@ -180,15 +180,6 @@ static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl) 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, u64 number, const struct gfs2_glock_operations *glops, int create, struct gfs2_glock **glp); Loading
fs/gfs2/quota.c +5 −8 Original line number Diff line number Diff line Loading @@ -843,9 +843,8 @@ static int do_glock(struct gfs2_quota_data *qd, int force_refresh, if (force_refresh || qd->qd_qb.qb_magic != cpu_to_be32(GFS2_MAGIC)) { loff_t pos; gfs2_glock_dq_uninit(q_gh); error = gfs2_glock_nq_init(qd->qd_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, q_gh); error = gfs2_glock_nq_init(qd->qd_gl, LM_ST_EXCLUSIVE, GL_NOCACHE, q_gh); if (error) return error; Loading @@ -871,12 +870,10 @@ static int do_glock(struct gfs2_quota_data *qd, int force_refresh, qlvb->qb_value = cpu_to_be64(q.qu_value); qd->qd_qb = *qlvb; if (gfs2_glock_is_blocking(qd->qd_gl)) { gfs2_glock_dq_uninit(q_gh); force_refresh = 0; goto restart; } } return 0; Loading