Lines Matching refs:free_blocks
492 unsigned int free_blocks; in __gfs2_log_try_reserve() local
494 free_blocks = atomic_read(&sdp->sd_log_blks_free); in __gfs2_log_try_reserve()
495 while (free_blocks >= wanted) { in __gfs2_log_try_reserve()
496 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve()
497 free_blocks - blks)) { in __gfs2_log_try_reserve()
528 unsigned int free_blocks; in __gfs2_log_reserve() local
535 (free_blocks = atomic_read(&sdp->sd_log_blks_free), in __gfs2_log_reserve()
536 free_blocks >= wanted)); in __gfs2_log_reserve()
539 &free_blocks, in __gfs2_log_reserve()
540 free_blocks - blks)) in __gfs2_log_reserve()
542 } while (free_blocks >= wanted); in __gfs2_log_reserve()