Lines Matching refs:blks
50 unsigned int blks; in gfs2_struct2blk() local
53 blks = 1; in gfs2_struct2blk()
58 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk()
61 return blks; in gfs2_struct2blk()
401 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
404 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
405 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
431 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_reserve() argument
435 unsigned wanted = blks + reserved_blks; in gfs2_log_reserve()
440 if (gfs2_assert_warn(sdp, blks) || in gfs2_log_reserve()
441 gfs2_assert_warn(sdp, blks <= sdp->sd_jdesc->jd_blocks)) in gfs2_log_reserve()
443 atomic_add(blks, &sdp->sd_log_blks_needed); in gfs2_log_reserve()
460 free_blocks - blks) != free_blocks) { in gfs2_log_reserve()
465 atomic_sub(blks, &sdp->sd_log_blks_needed); in gfs2_log_reserve()
466 trace_gfs2_log_blocks(sdp, -blks); in gfs2_log_reserve()
477 gfs2_log_release(sdp, blks); in gfs2_log_reserve()