Lines Matching refs:blks
49 unsigned int blks; in gfs2_struct2blk() local
52 blks = 1; in gfs2_struct2blk()
58 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk()
61 return blks; in gfs2_struct2blk()
323 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
326 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
327 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
353 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_reserve() argument
357 unsigned wanted = blks + reserved_blks; in gfs2_log_reserve()
362 if (gfs2_assert_warn(sdp, blks) || in gfs2_log_reserve()
363 gfs2_assert_warn(sdp, blks <= sdp->sd_jdesc->jd_blocks)) in gfs2_log_reserve()
365 atomic_add(blks, &sdp->sd_log_blks_needed); in gfs2_log_reserve()
382 free_blocks - blks) != free_blocks) { in gfs2_log_reserve()
387 atomic_sub(blks, &sdp->sd_log_blks_needed); in gfs2_log_reserve()
388 trace_gfs2_log_blocks(sdp, -blks); in gfs2_log_reserve()
399 gfs2_log_release(sdp, blks); in gfs2_log_reserve()