Lines Matching refs:blks

50 	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()
469 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
471 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
472 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
488 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_try_reserve() argument
491 unsigned wanted = blks + taboo_blks; in __gfs2_log_try_reserve()
497 free_blocks - blks)) { in __gfs2_log_try_reserve()
498 trace_gfs2_log_blocks(sdp, -blks); in __gfs2_log_try_reserve()
524 static void __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_reserve() argument
527 unsigned wanted = blks + taboo_blks; in __gfs2_log_reserve()
530 atomic_add(blks, &sdp->sd_log_blks_needed); in __gfs2_log_reserve()
540 free_blocks - blks)) in __gfs2_log_reserve()
546 trace_gfs2_log_blocks(sdp, -blks); in __gfs2_log_reserve()
547 if (atomic_sub_return(blks, &sdp->sd_log_blks_needed)) in __gfs2_log_reserve()
564 unsigned int blks = tr->tr_reserved; in gfs2_log_try_reserve() local
572 blks += revoke_blks; in gfs2_log_try_reserve()
574 if (!blks) in gfs2_log_try_reserve()
576 if (__gfs2_log_try_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS)) in gfs2_log_try_reserve()
595 unsigned int blks = tr->tr_reserved; in gfs2_log_reserve() local
603 blks += revoke_blks; in gfs2_log_reserve()
605 __gfs2_log_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS); in gfs2_log_reserve()