-/*
- * The hashing function used here is quite simple: simply take the inode
- * and use uint32_t of its bits.
- * Then when we do the lookup, use both the inode and device identifier.
- */
-static void
-inoadd(const struct stat *st, struct mpage *mpage)
-{
- unsigned int slot;
-
- mpage->inodev.st_ino = st->st_ino;
- mpage->inodev.st_dev = st->st_dev;
- slot = ohash_lookup_memory(&mpages, (char *)&mpage->inodev,
- sizeof(struct inodev), st->st_ino);
-
- assert(NULL == ohash_find(&mpages, slot));
- ohash_insert(&mpages, slot, mpage);
-}
-