Lines Matching refs:fscache
40 clp->fscache = fscache_acquire_cookie(nfs_fscache_netfs.primary_index, in nfs_fscache_get_client_cookie()
44 clp, clp->fscache); in nfs_fscache_get_client_cookie()
53 clp, clp->fscache); in nfs_fscache_release_client_cookie()
55 fscache_relinquish_cookie(clp->fscache, 0); in nfs_fscache_release_client_cookie()
56 clp->fscache = NULL; in nfs_fscache_release_client_cookie()
151 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie()
155 nfss, nfss->fscache); in nfs_fscache_get_super_cookie()
162 nfss->fscache = NULL; in nfs_fscache_get_super_cookie()
175 nfss, nfss->fscache); in nfs_fscache_release_super_cookie()
177 fscache_relinquish_cookie(nfss->fscache, 0); in nfs_fscache_release_super_cookie()
178 nfss->fscache = NULL; in nfs_fscache_release_super_cookie()
194 NFS_I(inode)->fscache = NULL; in nfs_fscache_init_inode_cookie()
207 if (nfsi->fscache || !NFS_FSCACHE(inode)) in nfs_fscache_enable_inode_cookie()
211 nfsi->fscache = fscache_acquire_cookie( in nfs_fscache_enable_inode_cookie()
212 NFS_SB(sb)->fscache, in nfs_fscache_enable_inode_cookie()
217 sb, nfsi, nfsi->fscache); in nfs_fscache_enable_inode_cookie()
229 nfsi, nfsi->fscache); in nfs_fscache_release_inode_cookie()
231 fscache_relinquish_cookie(nfsi->fscache, 0); in nfs_fscache_release_inode_cookie()
232 nfsi->fscache = NULL; in nfs_fscache_release_inode_cookie()
243 nfsi, nfsi->fscache); in nfs_fscache_zap_inode_cookie()
245 fscache_relinquish_cookie(nfsi->fscache, 1); in nfs_fscache_zap_inode_cookie()
246 nfsi->fscache = NULL; in nfs_fscache_zap_inode_cookie()
258 if (NFS_I(inode)->fscache) { in nfs_fscache_disable_inode_cookie()
265 fscache_uncache_all_inode_pages(NFS_I(inode)->fscache, inode); in nfs_fscache_disable_inode_cookie()
330 NFS_IFDEBUG(struct fscache_cookie *old = nfsi->fscache); in nfs_fscache_reset_inode_cookie()
333 if (nfsi->fscache) { in nfs_fscache_reset_inode_cookie()
335 fscache_relinquish_cookie(nfsi->fscache, 1); in nfs_fscache_reset_inode_cookie()
337 nfsi->fscache = fscache_acquire_cookie( in nfs_fscache_reset_inode_cookie()
338 nfss->nfs_client->fscache, in nfs_fscache_reset_inode_cookie()
344 nfss, nfsi, old, nfsi->fscache); in nfs_fscache_reset_inode_cookie()
358 struct fscache_cookie *cookie = nfsi->fscache; in nfs_fscache_release_page()
381 struct fscache_cookie *cookie = nfsi->fscache; in __nfs_fscache_invalidate_page()
430 NFS_I(inode)->fscache, page, page->index, page->flags, inode); in __nfs_readpage_from_fscache()
432 ret = fscache_read_or_alloc_page(NFS_I(inode)->fscache, in __nfs_readpage_from_fscache()
472 NFS_I(inode)->fscache, npages, inode); in __nfs_readpages_from_fscache()
474 ret = fscache_read_or_alloc_pages(NFS_I(inode)->fscache, in __nfs_readpages_from_fscache()
519 NFS_I(inode)->fscache, page, page->index, page->flags, sync); in __nfs_readpage_to_fscache()
521 ret = fscache_write_page(NFS_I(inode)->fscache, page, GFP_KERNEL); in __nfs_readpage_to_fscache()
527 fscache_uncache_page(NFS_I(inode)->fscache, page); in __nfs_readpage_to_fscache()