Lines Matching refs:free_blocks
99 return atomic_read(&rl->free_blocks); in pblk_rl_nr_free_blks()
108 unsigned long free_blocks) in __pblk_rl_update_rates() argument
114 if (free_blocks >= rl->high) { in __pblk_rl_update_rates()
127 } else if (free_blocks < rl->high) { in __pblk_rl_update_rates()
129 int user_windows = free_blocks >> shift; in __pblk_rl_update_rates()
135 if (free_blocks <= rl->rsv_blocks) { in __pblk_rl_update_rates()
161 int free_blocks; in pblk_rl_free_lines_inc() local
163 atomic_add(blk_in_line, &rl->free_blocks); in pblk_rl_free_lines_inc()
164 free_blocks = atomic_add_return(blk_in_line, &rl->free_user_blocks); in pblk_rl_free_lines_inc()
166 __pblk_rl_update_rates(rl, free_blocks); in pblk_rl_free_lines_inc()
173 int free_blocks; in pblk_rl_free_lines_dec() local
175 atomic_sub(blk_in_line, &rl->free_blocks); in pblk_rl_free_lines_dec()
178 free_blocks = atomic_sub_return(blk_in_line, in pblk_rl_free_lines_dec()
181 free_blocks = atomic_read(&rl->free_user_blocks); in pblk_rl_free_lines_dec()
183 __pblk_rl_update_rates(rl, free_blocks); in pblk_rl_free_lines_dec()