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()
477 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
479 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
480 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
496 static bool __gfs2_log_try_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_try_reserve() argument
499 unsigned wanted = blks + taboo_blks; in __gfs2_log_try_reserve()
505 free_blocks - blks)) { in __gfs2_log_try_reserve()
506 trace_gfs2_log_blocks(sdp, -blks); in __gfs2_log_try_reserve()
532 static void __gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks, in __gfs2_log_reserve() argument
535 unsigned wanted = blks + taboo_blks; in __gfs2_log_reserve()
538 atomic_add(blks, &sdp->sd_log_blks_needed); in __gfs2_log_reserve()
548 free_blocks - blks)) in __gfs2_log_reserve()
554 trace_gfs2_log_blocks(sdp, -blks); in __gfs2_log_reserve()
555 if (atomic_sub_return(blks, &sdp->sd_log_blks_needed)) in __gfs2_log_reserve()
572 unsigned int blks = tr->tr_reserved; in gfs2_log_try_reserve() local
580 blks += revoke_blks; in gfs2_log_try_reserve()
582 if (!blks) in gfs2_log_try_reserve()
584 if (__gfs2_log_try_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS)) in gfs2_log_try_reserve()
603 unsigned int blks = tr->tr_reserved; in gfs2_log_reserve() local
611 blks += revoke_blks; in gfs2_log_reserve()
613 __gfs2_log_reserve(sdp, blks, GFS2_LOG_FLUSH_MIN_BLOCKS); in gfs2_log_reserve()