Lines Matching refs:cookie

138 	u64 cookie;
257 return array->size == 0 ? array->last_cookie : array->array[0].cookie;
311 u64 *cookie)
330 cache_entry->cookie = array->last_cookie;
335 array->last_cookie = entry->cookie;
336 if (array->last_cookie <= cache_entry->cookie)
342 *cookie = array->last_cookie;
351 * cookie index of the first readdir entry in a page.
359 static pgoff_t nfs_readdir_folio_cookie_hash(u64 cookie)
361 if (cookie == 0)
363 return hash_64(cookie, 18);
386 static void nfs_readdir_folio_init_and_validate(struct folio *folio, u64 cookie,
390 if (nfs_readdir_folio_validate(folio, cookie, change_attr))
394 nfs_readdir_folio_init_array(folio, cookie, change_attr);
399 u64 cookie, u64 change_attr)
401 pgoff_t index = nfs_readdir_folio_cookie_hash(cookie);
407 nfs_readdir_folio_init_and_validate(folio, cookie, change_attr);
443 u64 cookie, u64 change_attr)
445 pgoff_t index = nfs_readdir_folio_cookie_hash(cookie);
453 nfs_readdir_folio_init_and_validate(folio, cookie, change_attr);
454 if (nfs_readdir_folio_last_cookie(folio) != cookie)
455 nfs_readdir_folio_reinit_array(folio, cookie, change_attr);
513 desc->dir_cookie = array->array[index].cookie;
522 u64 cookie)
527 if (cookie >= array->last_cookie)
529 if (array->size && cookie < array->array[0].cookie)
544 if (array->array[i].cookie == desc->dir_cookie) {
581 __be32 *verf, u64 cookie,
590 .cookie = cookie,
830 u64 cookie;
845 status = nfs_readdir_folio_array_append(folio, entry, &cookie);
852 new = nfs_readdir_folio_array_alloc(cookie, GFP_KERNEL);
858 new = nfs_readdir_folio_get_next(mapping, cookie,
867 status = nfs_readdir_folio_array_append(folio, entry, &cookie);
943 entry->cookie = nfs_readdir_folio_last_cookie(folio);
956 status = nfs_readdir_xdr_filler(desc, verf_arg, entry->cookie, pages,
996 u64 cookie = desc->last_cookie;
999 folio = nfs_readdir_folio_get_locked(mapping, cookie, change_attr);
1003 nfs_readdir_folio_reinit_array(folio, cookie, change_attr);
1044 * Set the cookie verifier if the page cache was empty
1114 desc->dir_cookie = array->array[i + 1].cookie;
1115 desc->last_cookie = array->array[0].cookie;
1126 dfprintk(DIRCACHE, "NFS: nfs_do_filldir() filling ended @ cookie %llu\n",
1131 * If we cannot find a cookie in our cache, we suspect that this is
1149 dfprintk(DIRCACHE, "NFS: uncached_readdir() searching for cookie %llu\n",
1216 last cookie cache takes care of the common case of reading the
1230 dfprintk(FILE, "NFS: readdir(%pD2) starting at cookie %llu\n",
1236 * *desc->dir_cookie has the cookie for the next entry. We have
1238 * revalidate the cookie.
1280 /* Or that the server has 'lost' a cookie */