Home
last modified time | relevance | path

Searched refs:dirty_idx (Results 1 – 9 of 9) sorted by relevance

/linux/fs/ubifs/
H A Dfind.c752 c->dirty_idx.cnt = c->lpt_heap[LPROPS_DIRTY_IDX - 1].cnt; in ubifs_save_dirty_idx_lnums()
753 memcpy(c->dirty_idx.arr, c->lpt_heap[LPROPS_DIRTY_IDX - 1].arr, in ubifs_save_dirty_idx_lnums()
754 sizeof(void *) * c->dirty_idx.cnt); in ubifs_save_dirty_idx_lnums()
756 sort(c->dirty_idx.arr, c->dirty_idx.cnt, sizeof(void *), in ubifs_save_dirty_idx_lnums()
758 dbg_find("found %d dirty index LEBs", c->dirty_idx.cnt); in ubifs_save_dirty_idx_lnums()
759 if (c->dirty_idx.cnt) in ubifs_save_dirty_idx_lnums()
761 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->lnum, in ubifs_save_dirty_idx_lnums()
762 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->dirty, in ubifs_save_dirty_idx_lnums()
763 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->free); in ubifs_save_dirty_idx_lnums()
765 for (i = 0; i < c->dirty_idx.cnt; i++) in ubifs_save_dirty_idx_lnums()
[all …]
H A Dlpt.c1800 c->dirty_idx.arr = kmalloc_array(LPT_HEAP_SZ, sizeof(void *), in lpt_init_rd()
1802 if (!c->dirty_idx.arr) in lpt_init_rd()
1804 c->dirty_idx.cnt = 0; in lpt_init_rd()
1805 c->dirty_idx.max_cnt = LPT_HEAP_SZ; in lpt_init_rd()
H A Dubifs.h1470 struct ubifs_lpt_heap dirty_idx; member
H A Dlpt_commit.c1445 kfree(c->dirty_idx.arr); in ubifs_lpt_free()
/linux/fs/bcachefs/
H A Djournal_reclaim.c31 return ja->dirty_idx; in journal_space_from()
48 if (available && ja->dirty_idx_ondisk == ja->dirty_idx) in bch2_journal_dev_buckets_available()
189 while (ja->dirty_idx != ja->cur_idx && in bch2_journal_space_available()
190 ja->bucket_seq[ja->dirty_idx] < journal_last_seq(j)) in bch2_journal_space_available()
191 ja->dirty_idx = (ja->dirty_idx + 1) % ja->nr; in bch2_journal_space_available()
193 while (ja->dirty_idx_ondisk != ja->dirty_idx && in bch2_journal_space_available()
H A Djournal.c1027 if (pos <= ja->dirty_idx) in __bch2_set_nr_journal_buckets()
1028 ja->dirty_idx = (ja->dirty_idx + nr_got) % ja->nr; in __bch2_set_nr_journal_buckets()
1517 prt_printf(out, "dirty_idx\t%u (seq %llu)\n", ja->dirty_idx, ja->bucket_seq[ja->dirty_idx]); in __bch2_journal_debug_to_text()
H A Djournal_io.c1172 ja->dirty_idx = (ja->cur_idx + 1) % ja->nr; in CLOSURE_CALLBACK()
/linux/drivers/net/ethernet/realtek/rtase/
H A Drtase_main.c239 rtase_tx_clear_range(ring, ring->dirty_idx, RTASE_NUM_DESC); in rtase_tx_clear()
241 ring->dirty_idx = 0; in rtase_tx_clear()
258 return READ_ONCE(ring->dirty_idx) + RTASE_NUM_DESC - in rtase_tx_avail()
271 dirty_tx = ring->dirty_idx; in tx_handler()
302 if (ring->dirty_idx != dirty_tx) { in tx_handler()
304 WRITE_ONCE(ring->dirty_idx, dirty_tx); in tx_handler()
327 ring->dirty_idx = 0; in rtase_tx_desc_init()
577 delta = rtase_rx_ring_fill(ring, ring->dirty_idx, ring->cur_idx); in rx_handler()
578 ring->dirty_idx += delta; in rx_handler()
591 ring->dirty_idx = 0; in rtase_rx_desc_init()
[all …]
H A Drtase.h281 u32 dirty_idx; member