Home
last modified time | relevance | path

Searched refs:fscache (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v4.19/fs/cifs/
Dfscache.c73 server->fscache = NULL; in cifs_fscache_get_client_cookie()
77 server->fscache = in cifs_fscache_get_client_cookie()
84 __func__, server, server->fscache); in cifs_fscache_get_client_cookie()
90 __func__, server, server->fscache); in cifs_fscache_release_client_cookie()
91 fscache_relinquish_cookie(server->fscache, NULL, false); in cifs_fscache_release_client_cookie()
92 server->fscache = NULL; in cifs_fscache_release_client_cookie()
103 tcon->fscache = NULL; in cifs_fscache_get_super_cookie()
107 tcon->fscache = in cifs_fscache_get_super_cookie()
108 fscache_acquire_cookie(server->fscache, in cifs_fscache_get_super_cookie()
115 __func__, server->fscache, tcon->fscache); in cifs_fscache_get_super_cookie()
[all …]
Dfscache.h86 if (CIFS_I(inode)->fscache) in cifs_readpage_from_fscache()
97 if (CIFS_I(inode)->fscache) in cifs_readpages_from_fscache()
113 if (CIFS_I(inode)->fscache) in cifs_fscache_readpages_cancel()
DMakefile22 cifs-$(CONFIG_CIFS_FSCACHE) += fscache.o cache.o
/Linux-v4.19/fs/9p/
Dcache.c68 v9ses->fscache = NULL; in v9fs_cache_session_get_cookie()
73 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, in v9fs_cache_session_get_cookie()
80 v9ses, v9ses->fscache); in v9fs_cache_session_get_cookie()
86 v9ses, v9ses->fscache); in v9fs_cache_session_put_cookie()
87 fscache_relinquish_cookie(v9ses->fscache, NULL, false); in v9fs_cache_session_put_cookie()
88 v9ses->fscache = NULL; in v9fs_cache_session_put_cookie()
124 if (v9inode->fscache) in v9fs_cache_inode_get_cookie()
128 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_get_cookie()
139 inode, v9inode->fscache); in v9fs_cache_inode_get_cookie()
146 if (!v9inode->fscache) in v9fs_cache_inode_put_cookie()
[all …]
Dv9fs.h107 struct fscache_cookie *fscache; member
127 struct fscache_cookie *fscache; member
Dcache.h93 fscache_uncache_page(v9inode->fscache, page); in v9fs_uncache_page()
Dv9fs.c497 if (v9ses->fscache) { in v9fs_session_close()
619 v9inode->fscache = NULL; in v9fs_inode_init_once()
/Linux-v4.19/fs/ceph/
Dcache.c43 struct fscache_cookie *fscache; member
100 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
106 if (fsc->fscache) { in ceph_fscache_register_fs()
107 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
157 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
165 if (!ci->fscache) { in ceph_fscache_register_inode_cookie()
170 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
183 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
186 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
202 if (!fscache_cookie_valid(ci->fscache)) in ceph_fscache_file_set_cookie()
[all …]
Dcache.h52 ci->fscache = NULL; in ceph_fscache_inode_init()
58 fscache_invalidate(ceph_inode(inode)->fscache); in ceph_fscache_invalidate()
65 return fscache_uncache_page(ci->fscache, page); in ceph_fscache_uncache_page()
72 return fscache_maybe_release_page(ci->fscache, page, gfp); in ceph_release_fscache_page()
79 if (fscache_cookie_valid(ci->fscache) && PageFsCache(page)) in ceph_fscache_readpage_cancel()
80 __fscache_uncache_page(ci->fscache, page); in ceph_fscache_readpage_cancel()
87 return fscache_readpages_cancel(ci->fscache, pages); in ceph_fscache_readpages_cancel()
/Linux-v4.19/fs/cachefiles/
Dinterface.c56 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
103 _leave(" = %p [%p]", &object->fscache, lookup_data); in cachefiles_alloc_object()
104 return &object->fscache; in cachefiles_alloc_object()
135 struct cachefiles_object, fscache); in cachefiles_lookup_object()
136 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_object()
150 object->fscache.cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) in cachefiles_lookup_object()
151 cachefiles_attr_changed(&object->fscache); in cachefiles_lookup_object()
156 fscache_object_lookup_error(&object->fscache); in cachefiles_lookup_object()
170 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_complete()
172 _enter("{OBJ%x,%p}", object->fscache.debug_id, object->lookup_data); in cachefiles_lookup_complete()
[all …]
Dnamei.c39 pr_err("%sobject: OBJ%x\n", prefix, object->fscache.debug_id); in __cachefiles_printk_object()
41 prefix, object->fscache.state->name, in __cachefiles_printk_object()
42 object->fscache.flags, work_busy(&object->fscache.work), in __cachefiles_printk_object()
43 object->fscache.events, object->fscache.event_mask); in __cachefiles_printk_object()
45 prefix, object->fscache.n_ops, object->fscache.n_in_progress, in __cachefiles_printk_object()
46 object->fscache.n_exclusive); in __cachefiles_printk_object()
48 prefix, object->fscache.parent); in __cachefiles_printk_object()
50 spin_lock(&object->fscache.lock); in __cachefiles_printk_object()
51 cookie = object->fscache.cookie; in __cachefiles_printk_object()
55 object->fscache.cookie, in __cachefiles_printk_object()
[all …]
Dxattr.c38 if (!object->fscache.cookie) in cachefiles_check_object_type()
41 snprintf(type, 3, "%02x", object->fscache.cookie->def->type); in cachefiles_check_object_type()
116 clear_bit(FSCACHE_COOKIE_AUX_UPDATED, &object->fscache.cookie->flags); in cachefiles_set_object_xattr()
145 clear_bit(FSCACHE_COOKIE_AUX_UPDATED, &object->fscache.cookie->flags); in cachefiles_update_object_xattr()
171 ASSERT(object->fscache.cookie->def->check_aux); in cachefiles_check_auxdata()
181 auxbuf->type != object->fscache.cookie->def->type) in cachefiles_check_auxdata()
185 validity = fscache_check_aux(&object->fscache, &auxbuf->data, xlen, in cachefiles_check_auxdata()
245 if (object->fscache.cookie->def->check_aux) { in cachefiles_check_object_xattr()
252 object->fscache.cookie->def->name, dlen); in cachefiles_check_object_xattr()
254 result = fscache_check_aux(&object->fscache, in cachefiles_check_object_xattr()
Drdwr.c64 object = container_of(op->op.object, struct cachefiles_object, fscache); in cachefiles_read_waiter()
165 struct cachefiles_object, fscache); in cachefiles_read_copier()
183 &object->fscache.cookie->flags)) { in cachefiles_read_copier()
408 struct cachefiles_object, fscache); in cachefiles_read_or_alloc_page()
409 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_page()
695 struct cachefiles_object, fscache); in cachefiles_read_or_alloc_pages()
696 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_pages()
700 object->fscache.debug_id, atomic_read(&op->op.usage), in cachefiles_read_or_alloc_pages()
804 struct cachefiles_object, fscache); in cachefiles_allocate_page()
805 cache = container_of(object->fscache.cache, in cachefiles_allocate_page()
[all …]
Dbind.c200 fsdef->fscache.cookie = NULL; in cachefiles_daemon_add_cache()
221 fscache_object_init(&fsdef->fscache, &fscache_fsdef_index, in cachefiles_daemon_add_cache()
224 ret = fscache_add_cache(&cache->cache, &fsdef->fscache, cache->tag); in cachefiles_daemon_add_cache()
Dinternal.h40 struct fscache_object fscache; /* fscache handle */ member
274 ___cache = container_of((object)->fscache.cache, \
/Linux-v4.19/fs/fscache/
DMakefile6 fscache-y := \
16 fscache-$(CONFIG_PROC_FS) += proc.o
17 fscache-$(CONFIG_FSCACHE_STATS) += stats.o
18 fscache-$(CONFIG_FSCACHE_HISTOGRAM) += histogram.o
19 fscache-$(CONFIG_FSCACHE_OBJECT_LIST) += object-list.o
21 obj-$(CONFIG_FSCACHE) := fscache.o
DKconfig10 See Documentation/filesystems/caching/fscache.txt for more information.
19 /proc/fs/fscache/stats
27 See Documentation/filesystems/caching/fscache.txt for more information.
36 /proc/fs/fscache/histogram
44 See Documentation/filesystems/caching/fscache.txt for more information.
52 enabled by setting bits in /sys/modules/fscache/parameter/debug.
54 See Documentation/filesystems/caching/fscache.txt for more information.
60 Maintain a global list of active fscache objects that can be
61 retrieved through /proc/fs/fscache/objects for debugging purposes
/Linux-v4.19/fs/nfs/
Dfscache.c80 clp->fscache = NULL; in nfs_fscache_get_client_cookie()
85 clp->fscache = fscache_acquire_cookie(nfs_fscache_netfs.primary_index, in nfs_fscache_get_client_cookie()
91 clp, clp->fscache); in nfs_fscache_get_client_cookie()
100 clp, clp->fscache); in nfs_fscache_release_client_cookie()
102 fscache_relinquish_cookie(clp->fscache, NULL, false); in nfs_fscache_release_client_cookie()
103 clp->fscache = NULL; in nfs_fscache_release_client_cookie()
187 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie()
193 nfss, nfss->fscache); in nfs_fscache_get_super_cookie()
200 nfss->fscache = NULL; in nfs_fscache_get_super_cookie()
213 nfss, nfss->fscache); in nfs_fscache_release_super_cookie()
[all …]
Dfscache.h115 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write()
136 if (NFS_I(inode)->fscache) in nfs_readpage_from_fscache()
150 if (NFS_I(inode)->fscache) in nfs_readpages_from_fscache()
173 fscache_invalidate(NFS_I(inode)->fscache); in nfs_fscache_invalidate()
181 fscache_wait_on_invalidate(NFS_I(inode)->fscache); in nfs_fscache_wait_on_invalidate()
189 if (server->fscache && (server->options & NFS_OPTION_FSCACHE)) in nfs_server_fscache_state()
Diostat.h21 unsigned long long fscache[__NFSIOS_FSCACHEMAX]; member
57 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); in nfs_add_fscache_stats()
62 this_cpu_inc(NFS_SERVER(inode)->io_stats->fscache[stat]); in nfs_inc_fscache_stats()
DMakefile14 nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
/Linux-v4.19/include/linux/
Dnfs_fs_sb.h120 struct fscache_cookie *fscache; /* client index cache cookie */ member
171 struct fscache_cookie *fscache; /* superblock cookie */ member
Dnfs_fs.h183 struct fscache_cookie *fscache; member
295 return NFS_I(inode)->fscache; in nfs_i_fscache()
/Linux-v4.19/Documentation/filesystems/caching/
Dfscache.txt209 (*) /proc/fs/fscache/stats
313 (*) /proc/fs/fscache/histogram
315 cat /proc/fs/fscache/histogram
344 /proc/fs/fscache/objects
348 [root@andromeda ~]# head /proc/fs/fscache/objects
386 keyctl add user fscache:objlist <restrictions> @s
408 keyctl add user fscache:objlist KB @s
424 /sys/module/fscache/parameters/debug
446 echo $((1|8|64)) >/sys/module/fscache/parameters/debug
/Linux-v4.19/Documentation/filesystems/
D9p.txt76 fscache = use FS-Cache for a persistent, read-only
93 0x800 = display fscache tracing debug
134 /sys/fs/9p/caches. (applies only to cache=fscache)

12