Searched refs:fifo_used (Results 1 – 7 of 7) sorted by relevance
160 #define fifo_used(fifo) (((fifo)->back - (fifo)->front) & (fifo)->mask) macro161 #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo))163 #define fifo_empty(fifo) (!fifo_used(fifo))
210 fifo_used(&ca->free[RESERVE_MOVINGGC]); in bch_moving_gc()
568 #define last_seq(j) ((j)->seq - fifo_used(&(j)->pin) + 1)714 pr_debug("journal_pin full (%zu)\n", fifo_used(&j->pin)); in bch_journal_next()
617 fifo_used(&ca->free[RESERVE_PRIO]), in bch_prio_write()618 fifo_used(&ca->free[RESERVE_NONE]), in bch_prio_write()619 fifo_used(&ca->free_inc)); in bch_prio_write()627 size_t avail = fifo_used(&ca->free[RESERVE_PRIO]) + in bch_prio_write()628 fifo_used(&ca->free[RESERVE_NONE]); in bch_prio_write()
790 sysfs_print(active_journal_entries, fifo_used(&c->journal.pin)); in SHOW()
1178 if (fifo_used(&ca->free[RESERVE_BTREE]) < reserve) { in btree_check_reserve()
480 __entry->free = fifo_used(&ca->free[reserve]);481 __entry->free_inc = fifo_used(&ca->free_inc);