Lines Matching defs:blks
50 unsigned int blks;
54 blks = 1;
60 blks += DIV_ROUND_UP(nstruct - first, second);
63 return blks;
473 * @blks: The number of blocks
477 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
479 atomic_add(blks, &sdp->sd_log_blks_free);
480 trace_gfs2_log_blocks(sdp, blks);
490 * @blks: The number of blocks to reserve
496 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks,
499 unsigned wanted = blks + taboo_blks;
505 free_blocks - blks)) {
506 trace_gfs2_log_blocks(sdp, -blks);
516 * @blks: The number of blocks to reserve
532 static void __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks,
535 unsigned wanted = blks + taboo_blks;
538 atomic_add(blks, &sdp->sd_log_blks_needed);
548 free_blocks - blks))
554 trace_gfs2_log_blocks(sdp, -blks);
555 if (atomic_sub_return(blks, &sdp->sd_log_blks_needed))
572 unsigned int blks = tr->tr_reserved;
580 blks += revoke_blks;
582 if (!blks)
584 if (__gfs2_log_try_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS))
603 unsigned int blks = tr->tr_reserved;
611 blks += revoke_blks;
613 __gfs2_log_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS);