Lines Matching refs:cookie

13  (2) Every index, file or other object is represented by a cookie.  This cookie
37 (14) Miscellaneous cookie operations
70 (3) The cookie representing the primary index will be allocated according to
195 cookie acquisition function and the maximum length of key data that it may
202 cookie acquisition function. It should return the size of the file if
211 cookie acquisition function and the maximum length of auxiliary data that
269 unbound from a cookie and that all the marks on the pages should be
332 be used to locate files. This is done by requesting a cookie for each index in
345 internally. It may, however, return NULL to indicate no cookie. It is quite
347 acquisition (or even to the relinquish cookie, read page and write page
355 A cookie will be created in the disabled state if enabled is false. A cookie
356 must be enabled to do anything with it. A disabled cookie can be enabled by
391 identical to index cookie acquisition. The only difference is that the type in
405 the cache. This is almost identical to index cookie acquisition. The only
427 int fscache_attr_changed(struct fscache_cookie *cookie);
431 will be accessed with the get_attr() cookie definition operation.
472 int fscache_read_or_alloc_page(struct fscache_cookie *cookie,
478 The cookie argument must specify a cookie for an object that isn't an index,
483 If the cookie indicates the inode is not cached:
489 (1) The mark_pages_cached() cookie operation will be called on that page.
498 (*) The netfs data supplied when the cookie was created.
517 (1) The mark_pages_cached() cookie operation will be called on that page.
534 int fscache_alloc_page(struct fscache_cookie *cookie,
543 The mark_pages_cached() cookie operation will be called on the page if
554 int fscache_write_page(struct fscache_cookie *cookie,
558 The cookie argument must specify a data file cookie, the page specified should
566 If the cookie indicates the inode is not cached then:
595 int fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
609 (2) The mark_pages_cached() cookie operation will be called on several pages
640 void fscache_readpages_cancel(struct fscache_cookie *cookie,
643 prior to returning to the caller. The cookie argument should be as passed to
654 void fscache_uncache_page(struct fscache_cookie *cookie,
663 data file must be retired (see the relinquish cookie function below).
669 bool fscache_check_page_write(struct fscache_cookie *cookie,
674 void fscache_wait_on_page_write(struct fscache_cookie *cookie,
685 bool fscache_maybe_release_page(struct fscache_cookie *cookie,
689 This takes the netfs cookie, and the page and gfp arguments as supplied to
706 void fscache_uncache_all_inode_pages(struct fscache_cookie *cookie,
709 This takes the netfs cookie that the pages were cached with and the inode that
722 int fscache_check_consistency(struct fscache_cookie *cookie)
725 with a cookie is correct. It returns 0 if it is and -ESTALE if it isn't; it
731 void fscache_update_cookie(struct fscache_cookie *cookie);
733 This function will refer back to the netfs_data pointer stored in the cookie by
746 Cookies exist in one of two states: enabled and disabled. If a cookie is
749 still possible to uncache pages and relinquish the cookie.
751 The initial enablement state is set by fscache_acquire_cookie(), but the cookie
752 can be enabled or disabled later. To disable a cookie, call:
754 void fscache_disable_cookie(struct fscache_cookie *cookie,
757 If the cookie is not already disabled, this locks the cookie against other
758 enable and disable ops, marks the cookie as being disabled, discards or
760 associated object before unlocking the cookie.
768 void fscache_enable_cookie(struct fscache_cookie *cookie,
772 If the cookie is not already enabled, this locks the cookie against other
773 enable and disable ops, invokes can_enable() and, if the cookie is not an index
774 cookie, will begin the procedure of acquiring backing objects.
779 All possible failures are handled internally. The cookie will only be marked
791 int fscache_pin_cookie(struct fscache_cookie *cookie);
792 void fscache_unpin_cookie(struct fscache_cookie *cookie);
797 The pinning function will return 0 if successful, -ENOBUFS in the cookie
804 int fscache_reserve_space(struct fscache_cookie *cookie, loff_t size);
812 The function will return 0 if successful, -ENOBUFS in the cookie isn't
825 To get rid of a cookie, this function should be called.
827 void fscache_relinquish_cookie(struct fscache_cookie *cookie,
836 cookie.
838 One very important note - relinquish must NOT be called for a cookie unless all
848 should relinquish and retire the cookie they have, and then acquire a new one.
863 void fscache_invalidate(struct fscache_cookie *cookie);
878 void fscache_wait_on_invalidate(struct fscache_cookie *cookie);