Lines Matching refs:free_blocks
491 unsigned int free_blocks; in __gfs2_log_try_reserve() local
493 free_blocks = atomic_read(&sdp->sd_log_blks_free); in __gfs2_log_try_reserve()
494 while (free_blocks >= wanted) { in __gfs2_log_try_reserve()
495 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve()
496 free_blocks - blks)) { in __gfs2_log_try_reserve()
527 unsigned int free_blocks; in __gfs2_log_reserve() local
534 (free_blocks = atomic_read(&sdp->sd_log_blks_free), in __gfs2_log_reserve()
535 free_blocks >= wanted)); in __gfs2_log_reserve()
538 &free_blocks, in __gfs2_log_reserve()
539 free_blocks - blks)) in __gfs2_log_reserve()
541 } while (free_blocks >= wanted); in __gfs2_log_reserve()