Lines Matching defs:blks
50 unsigned int blks;
54 blks = 1;
60 blks += DIV_ROUND_UP(nstruct - first, second);
63 return blks;
469 * @blks: The number of blocks
473 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
475 atomic_add(blks, &sdp->sd_log_blks_free);
476 trace_gfs2_log_blocks(sdp, blks);
486 * @blks: The number of blocks to reserve
492 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks,
495 unsigned wanted = blks + taboo_blks;
501 free_blocks - blks)) {
502 trace_gfs2_log_blocks(sdp, -blks);
512 * @blks: The number of blocks to reserve
528 static void __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks,
531 unsigned wanted = blks + taboo_blks;
534 atomic_add(blks, &sdp->sd_log_blks_needed);
544 free_blocks - blks))
550 trace_gfs2_log_blocks(sdp, -blks);
551 if (atomic_sub_return(blks, &sdp->sd_log_blks_needed))
568 unsigned int blks = tr->tr_reserved;
576 blks += revoke_blks;
578 if (!blks)
580 if (__gfs2_log_try_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS))
599 unsigned int blks = tr->tr_reserved;
607 blks += revoke_blks;
609 __gfs2_log_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS);