Lines Matching defs:item
339 fstrm_item_t *item;
354 item = xfs_mru_cache_lookup(cache, ip->i_ino);
355 if (item) {
356 ASSERT(item->ip == ip);
357 old_ag = item->ag;
358 item->ag = ag;
359 old_pip = item->pip;
360 item->pip = pip;
386 item = kmem_zone_zalloc(item_zone, KM_MAYFAIL);
387 if (!item)
390 item->ag = ag;
391 item->ip = ip;
392 item->pip = pip;
394 err = xfs_mru_cache_insert(cache, ip->i_ino, item);
396 kmem_zone_free(item_zone, item);
428 fstrm_item_t *item = (fstrm_item_t *)data;
429 xfs_inode_t *ip = item->ip;
435 /* Drop the reference taken on the AG when the item was added. */
436 xfs_filestream_put_ag(ip->i_mount, item->ag);
438 TRACE_FREE(ip->i_mount, ip, item->pip, item->ag,
439 xfs_filestream_peek_ag(ip->i_mount, item->ag));
455 if (item->pip)
456 IRELE(item->pip);
458 /* Finally, free the memory allocated for the item. */
459 kmem_zone_free(item_zone, item);
536 fstrm_item_t *item;
546 item = xfs_mru_cache_lookup(cache, ip->i_ino);
547 if (!item) {
552 ASSERT(ip == item->ip);
553 ag = item->ag;
557 TRACE_LOOKUP(ip->i_mount, ip, item->pip, ag, ref);
578 fstrm_item_t *item;
609 item = xfs_mru_cache_lookup(cache, pip->i_ino);
610 if (item) {
611 ASSERT(item->ip == pip);
612 ag = item->ag;
723 * the item had simply expired from the cache.