/* Indication from FS-Cache that the cookie is no longer cached */
static void nfs_fscache_inode_now_uncached(void *cookie_netfs_data)
/* Indication from FS-Cache that the cookie is no longer cached */
static void nfs_fscache_inode_now_uncached(void *cookie_netfs_data)
{
	struct nfs_inode *nfsi = cookie_netfs_data;
	struct pagevec pvec;
	pgoff_t first;
	int loop, nr_pages;
	pagevec_init(&pvec, 0);
	first = 0;
	dprintk("NFS: nfs_inode_now_uncached: nfs_inode 0x%p\n", nfsi);
	for (;;) {
		nr_pages = pagevec_lookup(&pvec,
					  nfsi->vfs_inode.i_mapping,
					  first,
					  PAGEVEC_SIZE - pagevec_count(&pvec));
		if (!nr_pages)
			break;
		for (loop = 0; loop < nr_pages; loop++)
			ClearPageFsCache(pvec.pages[loop]);
		first = pvec.pages[nr_pages - 1]->index + 1;
		pvec.nr = nr_pages;
		pagevec_release(&pvec);
		cond_resched();
	}
}