Home
last modified time | relevance | path

Searched refs:fifo_used (Results 1 – 6 of 6) sorted by relevance

/drivers/md/bcache/
Dutil.h162 #define fifo_used(fifo) (((fifo)->back - (fifo)->front) & (fifo)->mask) macro
163 #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo))
165 #define fifo_empty(fifo) (!fifo_used(fifo))
Dmovinggc.c211 fifo_used(&ca->free[RESERVE_MOVINGGC]); in bch_moving_gc()
Dsuper.c539 fifo_used(&ca->free[RESERVE_PRIO]), in bch_prio_write()
540 fifo_used(&ca->free[RESERVE_NONE]), in bch_prio_write()
541 fifo_used(&ca->free_inc)); in bch_prio_write()
549 size_t avail = fifo_used(&ca->free[RESERVE_PRIO]) + in bch_prio_write()
550 fifo_used(&ca->free[RESERVE_NONE]); in bch_prio_write()
Djournal.c505 #define last_seq(j) ((j)->seq - fifo_used(&(j)->pin) + 1)
651 pr_debug("journal_pin full (%zu)", fifo_used(&j->pin)); in bch_journal_next()
Dsysfs.c742 sysfs_print(active_journal_entries, fifo_used(&c->journal.pin)); in SHOW()
Dbtree.c1221 if (fifo_used(&ca->free[RESERVE_BTREE]) < reserve) { in btree_check_reserve()