Home
last modified time | relevance | path

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

/linux-4.1.27/fs/cifs/
Dfscache.c28 server->fscache = in cifs_fscache_get_client_cookie()
32 __func__, server, server->fscache); in cifs_fscache_get_client_cookie()
38 __func__, server, server->fscache); in cifs_fscache_release_client_cookie()
39 fscache_relinquish_cookie(server->fscache, 0); in cifs_fscache_release_client_cookie()
40 server->fscache = NULL; in cifs_fscache_release_client_cookie()
47 tcon->fscache = in cifs_fscache_get_super_cookie()
48 fscache_acquire_cookie(server->fscache, in cifs_fscache_get_super_cookie()
51 __func__, server->fscache, tcon->fscache); in cifs_fscache_get_super_cookie()
56 cifs_dbg(FYI, "%s: (0x%p)\n", __func__, tcon->fscache); in cifs_fscache_release_super_cookie()
57 fscache_relinquish_cookie(tcon->fscache, 0); in cifs_fscache_release_super_cookie()
[all …]
Dfscache.h71 if (CIFS_I(inode)->fscache) in cifs_readpage_from_fscache()
82 if (CIFS_I(inode)->fscache) in cifs_readpages_from_fscache()
98 if (CIFS_I(inode)->fscache) in cifs_fscache_readpages_cancel()
DMakefile17 cifs-$(CONFIG_CIFS_FSCACHE) += fscache.o cache.o
Dcifsglob.h609 struct fscache_cookie *fscache; /* client index cache cookie */ member
905 struct fscache_cookie *fscache; /* cookie for share */ member
1154 struct fscache_cookie *fscache; member
Dinode.c968 CIFS_I(inode)->fscache = NULL;
/linux-4.1.27/fs/9p/
Dcache.c91 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, in v9fs_cache_session_get_cookie()
95 v9ses, v9ses->fscache); in v9fs_cache_session_get_cookie()
101 v9ses, v9ses->fscache); in v9fs_cache_session_put_cookie()
102 fscache_relinquish_cookie(v9ses->fscache, 0); in v9fs_cache_session_put_cookie()
103 v9ses->fscache = NULL; in v9fs_cache_session_put_cookie()
201 if (v9inode->fscache) in v9fs_cache_inode_get_cookie()
205 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_get_cookie()
210 inode, v9inode->fscache); in v9fs_cache_inode_get_cookie()
217 if (!v9inode->fscache) in v9fs_cache_inode_put_cookie()
220 inode, v9inode->fscache); in v9fs_cache_inode_put_cookie()
[all …]
Dv9fs.h106 struct fscache_cookie *fscache; member
127 struct fscache_cookie *fscache; member
Dcache.h92 fscache_uncache_page(v9inode->fscache, page); in v9fs_uncache_page()
Dv9fs.c445 if (v9ses->fscache) { in v9fs_session_close()
569 v9inode->fscache = NULL; in v9fs_inode_init_once()
Dvfs_inode.c246 v9inode->fscache = NULL; in v9fs_alloc_inode()
/linux-4.1.27/fs/cachefiles/
Dinterface.c56 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
97 _leave(" = %p [%p]", &object->fscache, lookup_data); in cachefiles_alloc_object()
98 return &object->fscache; in cachefiles_alloc_object()
129 struct cachefiles_object, fscache); in cachefiles_lookup_object()
130 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_object()
144 object->fscache.cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) in cachefiles_lookup_object()
145 cachefiles_attr_changed(&object->fscache); in cachefiles_lookup_object()
150 fscache_object_lookup_error(&object->fscache); in cachefiles_lookup_object()
164 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_complete()
166 _enter("{OBJ%x,%p}", object->fscache.debug_id, object->lookup_data); in cachefiles_lookup_complete()
[all …]
Dnamei.c38 pr_err("%sobject: OBJ%x\n", prefix, object->fscache.debug_id); in __cachefiles_printk_object()
40 prefix, object->fscache.state->name, in __cachefiles_printk_object()
41 object->fscache.flags, work_busy(&object->fscache.work), in __cachefiles_printk_object()
42 object->fscache.events, object->fscache.event_mask); in __cachefiles_printk_object()
44 prefix, object->fscache.n_ops, object->fscache.n_in_progress, in __cachefiles_printk_object()
45 object->fscache.n_exclusive); in __cachefiles_printk_object()
47 prefix, object->fscache.parent); in __cachefiles_printk_object()
49 spin_lock(&object->fscache.lock); in __cachefiles_printk_object()
50 cookie = object->fscache.cookie; in __cachefiles_printk_object()
54 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()
169 ASSERT(object->fscache.cookie->def->check_aux); in cachefiles_check_auxdata()
179 auxbuf->type != object->fscache.cookie->def->type) in cachefiles_check_auxdata()
183 validity = fscache_check_aux(&object->fscache, &auxbuf->data, xlen); in cachefiles_check_auxdata()
242 if (object->fscache.cookie->def->check_aux) { in cachefiles_check_object_xattr()
249 object->fscache.cookie->def->name, dlen); in cachefiles_check_object_xattr()
251 result = fscache_check_aux(&object->fscache, in cachefiles_check_object_xattr()
Drdwr.c57 struct cachefiles_object, fscache); in cachefiles_read_waiter()
158 struct cachefiles_object, fscache); in cachefiles_read_copier()
176 &object->fscache.cookie->flags)) { in cachefiles_read_copier()
402 struct cachefiles_object, fscache); in cachefiles_read_or_alloc_page()
403 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_page()
693 struct cachefiles_object, fscache); in cachefiles_read_or_alloc_pages()
694 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_pages()
698 object->fscache.debug_id, atomic_read(&op->op.usage), in cachefiles_read_or_alloc_pages()
805 struct cachefiles_object, fscache); in cachefiles_allocate_page()
806 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, NULL, &cache->cache); in cachefiles_daemon_add_cache()
223 ret = fscache_add_cache(&cache->cache, &fsdef->fscache, cache->tag); in cachefiles_daemon_add_cache()
Dinternal.h39 struct fscache_object fscache; /* fscache handle */ member
267 ___cache = container_of((object)->fscache.cache, \
/linux-4.1.27/fs/ceph/
Dcache.c69 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
73 if (fsc->fscache == NULL) { in ceph_fscache_register_fs()
192 if (fsc->fscache == NULL) in ceph_fscache_register_inode_cookie()
202 if (ci->fscache) in ceph_fscache_register_inode_cookie()
205 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
208 fscache_check_consistency(ci->fscache); in ceph_fscache_register_inode_cookie()
218 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
221 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
261 ret = fscache_read_or_alloc_page(ci->fscache, page, in ceph_readpage_from_fscache()
290 ret = fscache_read_or_alloc_pages(ci->fscache, mapping, pages, nr_pages, in ceph_readpages_from_fscache()
[all …]
Dcache.h54 fscache_attr_changed(ci->fscache); in ceph_fscache_update_objectsize()
59 fscache_invalidate(ceph_inode(inode)->fscache); in ceph_fscache_invalidate()
66 return fscache_uncache_page(ci->fscache, page); in ceph_fscache_uncache_page()
73 return fscache_maybe_release_page(ci->fscache, page, gfp); in ceph_release_fscache_page()
80 if (fscache_cookie_valid(ci->fscache) && PageFsCache(page)) in ceph_fscache_readpage_cancel()
81 __fscache_uncache_page(ci->fscache, page); in ceph_fscache_readpage_cancel()
88 return fscache_readpages_cancel(ci->fscache, pages); in ceph_fscache_readpages_cancel()
Dsuper.h103 struct fscache_cookie *fscache; member
336 struct fscache_cookie *fscache; member
/linux-4.1.27/fs/fscache/
DMakefile5 fscache-y := \
15 fscache-$(CONFIG_PROC_FS) += proc.o
16 fscache-$(CONFIG_FSCACHE_STATS) += stats.o
17 fscache-$(CONFIG_FSCACHE_HISTOGRAM) += histogram.o
18 fscache-$(CONFIG_FSCACHE_OBJECT_LIST) += object-list.o
20 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-4.1.27/fs/nfs/
Dfscache.c40 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()
140 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie()
144 nfss, nfss->fscache); in nfs_fscache_get_super_cookie()
151 nfss->fscache = NULL; in nfs_fscache_get_super_cookie()
164 nfss, nfss->fscache); in nfs_fscache_release_super_cookie()
166 fscache_relinquish_cookie(nfss->fscache, 0); in nfs_fscache_release_super_cookie()
[all …]
Dfscache.h100 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write()
121 if (NFS_I(inode)->fscache) in nfs_readpage_from_fscache()
135 if (NFS_I(inode)->fscache) in nfs_readpages_from_fscache()
158 fscache_invalidate(NFS_I(inode)->fscache); in nfs_fscache_invalidate()
166 fscache_wait_on_invalidate(NFS_I(inode)->fscache); in nfs_fscache_wait_on_invalidate()
174 if (server->fscache && (server->options & NFS_OPTION_FSCACHE)) in nfs_server_fscache_state()
Diostat.h20 unsigned long long fscache[__NFSIOS_FSCACHEMAX]; member
56 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); in nfs_add_fscache_stats()
61 this_cpu_inc(NFS_SERVER(inode)->io_stats->fscache[stat]); in nfs_inc_fscache_stats()
DMakefile13 nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
Dsuper.c868 totals.fscache[i] += stats->fscache[i]; in nfs_show_stats()
2467 nfss->fscache = NULL; in nfs_get_cache_cookie()
/linux-4.1.27/include/linux/
Dnfs_fs_sb.h113 struct fscache_cookie *fscache; /* client index cache cookie */ member
163 struct fscache_cookie *fscache; /* superblock cookie */ member
Dnfs_fs.h192 struct fscache_cookie *fscache; member
273 return NFS_I(inode)->fscache; in nfs_i_fscache()
/linux-4.1.27/Documentation/filesystems/caching/
Dfscache.txt209 (*) /proc/fs/fscache/stats
308 (*) /proc/fs/fscache/histogram
310 cat /proc/fs/fscache/histogram
339 /proc/fs/fscache/objects
343 [root@andromeda ~]# head /proc/fs/fscache/objects
381 keyctl add user fscache:objlist <restrictions> @s
403 keyctl add user fscache:objlist KB @s
419 /sys/module/fscache/parameters/debug
441 echo $((1|8|64)) >/sys/module/fscache/parameters/debug
Dcachefiles.txt132 binds to fscache and the cache becomes live.
371 http://people.redhat.com/~dhowells/fscache/cachefilesd-0.8.tar.bz2
391 By default, the cache is located in /var/fscache, but if it is desirable that
Doperations.txt33 To make use of this facility, <linux/fscache-cache.h> should be #included.
Dbackend-api.txt9 This API is declared in <linux/fscache-cache.h>.
99 A sysfs directory called /sys/fs/fscache/<cachetag>/ is created if CONFIG_SYSFS
Dnetfs-api.txt20 This API is declared in <linux/fscache.h>.
/linux-4.1.27/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)
Dafs.txt30 (*) Local caching (via fscache).
/linux-4.1.27/fs/
DMakefile63 obj-$(CONFIG_FSCACHE) += fscache/
DKconfig83 source "fs/fscache/Kconfig"
/linux-4.1.27/Documentation/
Dworkqueue.txt58 higher level of concurrency, like async or fscache, had to implement
/linux-4.1.27/
DMAINTAINERS4235 F: fs/fscache/
4236 F: include/linux/fscache*.h