Lines Matching refs:blks
51 unsigned int blks; in gfs2_struct2blk() local
54 blks = 1; in gfs2_struct2blk()
60 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk()
63 return blks; in gfs2_struct2blk()
310 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
313 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
314 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
340 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_reserve() argument
344 unsigned wanted = blks + reserved_blks; in gfs2_log_reserve()
349 if (gfs2_assert_warn(sdp, blks) || in gfs2_log_reserve()
350 gfs2_assert_warn(sdp, blks <= sdp->sd_jdesc->jd_blocks)) in gfs2_log_reserve()
368 free_blocks - blks) != free_blocks) { in gfs2_log_reserve()
373 trace_gfs2_log_blocks(sdp, -blks); in gfs2_log_reserve()
384 gfs2_log_release(sdp, blks); in gfs2_log_reserve()