Lines Matching refs:dirid
711 void dcache_enter(int dirid, int slot) in dcache_enter() argument
713 dcache[dirid % NDCACHE] = slot; in dcache_enter()
724 fent_t *dcache_lookup(int dirid) in dcache_lookup() argument
729 i = dcache[dirid % NDCACHE]; in dcache_lookup()
730 if (i >= 0 && (fep = &flist[FT_DIR].fents[i])->id == dirid) in dcache_lookup()
735 void dcache_purge(int dirid) in dcache_purge() argument
739 dcp = &dcache[dirid % NDCACHE]; in dcache_purge()
740 if (*dcp >= 0 && flist[FT_DIR].fents[*dcp].id == dirid) in dcache_purge()
759 fent_t *dirid_to_fent(int dirid) in dirid_to_fent() argument
765 if ((fep = dcache_lookup(dirid))) in dirid_to_fent()
769 if (fep->id == dirid) { in dirid_to_fent()
770 dcache_enter(dirid, fep - flp->fents); in dirid_to_fent()