Home
last modified time | relevance | path

Searched refs:fscache (Results 1 - 25 of 69) sorted by relevance

123

/kernel/linux/linux-5.10/fs/cifs/
H A Dfscache.c2 * fs/cifs/fscache.c - CIFS filesystem cache interface
21 #include "fscache.h"
73 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()
104 tcon->fscache = NULL; in cifs_fscache_get_super_cookie()
113 tcon->fscache in cifs_fscache_get_super_cookie()
[all...]
H A Dfscache.h2 * fs/cifs/fscache.h - CIFS filesystem cache interface definitions
24 #include <linux/fscache.h>
63 * fscache.c
95 if (CIFS_I(inode)->fscache) in cifs_readpage_from_fscache()
106 if (CIFS_I(inode)->fscache) in cifs_readpages_from_fscache()
122 if (CIFS_I(inode)->fscache) in cifs_fscache_readpages_cancel()
/kernel/linux/linux-5.10/fs/9p/
H A Dcache.c53 v9ses->fscache = NULL; in v9fs_cache_session_get_cookie()
60 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, in v9fs_cache_session_get_cookie()
67 v9ses, v9ses->fscache); in v9fs_cache_session_get_cookie()
73 v9ses, v9ses->fscache); in v9fs_cache_session_put_cookie()
74 fscache_relinquish_cookie(v9ses->fscache, NULL, false); in v9fs_cache_session_put_cookie()
75 v9ses->fscache = NULL; in v9fs_cache_session_put_cookie()
111 if (v9inode->fscache) in v9fs_cache_inode_get_cookie()
115 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_get_cookie()
126 inode, v9inode->fscache); in v9fs_cache_inode_get_cookie()
[all...]
H A Dv9fs.h66 * @fscache: session cookie associated with FS-Cache
92 struct fscache_cookie *fscache; member
113 struct fscache_cookie *fscache; member
H A Dcache.h11 #include <linux/fscache.h>
78 fscache_uncache_page(v9inode->fscache, page); in v9fs_uncache_page()
/kernel/linux/linux-5.10/fs/ceph/
H A Dcache.c31 struct fscache_cookie *fscache; member
70 errorfc(fc, "fscache cookie already registered for fsid %pU, use fsc=<uniquifier> option", in ceph_fscache_register_fs()
88 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
94 if (fsc->fscache) { in ceph_fscache_register_fs()
95 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
99 errorfc(fc, "unable to register fscache cookie for fsid %pU", in ceph_fscache_register_fs()
145 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
153 if (!ci->fscache) { in ceph_fscache_register_inode_cookie()
158 ci->fscache in ceph_fscache_register_inode_cookie()
[all...]
H A Dcache.h37 ci->fscache = NULL; in ceph_fscache_inode_init()
43 fscache_invalidate(ceph_inode(inode)->fscache); in ceph_fscache_invalidate()
50 return fscache_uncache_page(ci->fscache, page); in ceph_fscache_uncache_page()
57 return fscache_maybe_release_page(ci->fscache, page, gfp); in ceph_release_fscache_page()
64 if (fscache_cookie_valid(ci->fscache) && PageFsCache(page)) in ceph_fscache_readpage_cancel()
65 __fscache_uncache_page(ci->fscache, page); in ceph_fscache_readpage_cancel()
72 return fscache_readpages_cancel(ci->fscache, pages); in ceph_fscache_readpages_cancel()
/kernel/linux/linux-5.10/fs/cachefiles/
H A Dinterface.c52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
99 _leave(" = %p [%p]", &object->fscache, lookup_data); in cachefiles_alloc_object()
100 return &object->fscache; in cachefiles_alloc_object()
131 struct cachefiles_object, fscache); in cachefiles_lookup_object()
132 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_object()
146 object->fscache.cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) in cachefiles_lookup_object()
147 cachefiles_attr_changed(&object->fscache); in cachefiles_lookup_object()
152 fscache_object_lookup_error(&object->fscache); in cachefiles_lookup_object()
166 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_complete()
168 _enter("{OBJ%x,%p}", object->fscache in cachefiles_lookup_complete()
[all...]
H A Dnamei.c34 pr_err("%sobject: OBJ%x\n", prefix, object->fscache.debug_id); in __cachefiles_printk_object()
36 prefix, object->fscache.state->name, in __cachefiles_printk_object()
37 object->fscache.flags, work_busy(&object->fscache.work), in __cachefiles_printk_object()
38 object->fscache.events, object->fscache.event_mask); in __cachefiles_printk_object()
40 prefix, object->fscache.n_ops, object->fscache.n_in_progress, in __cachefiles_printk_object()
41 object->fscache.n_exclusive); in __cachefiles_printk_object()
43 prefix, object->fscache in __cachefiles_printk_object()
[all...]
H A Dxattr.c34 if (!object->fscache.cookie) in cachefiles_check_object_type()
37 snprintf(type, 3, "%02x", object->fscache.cookie->def->type); in cachefiles_check_object_type()
112 clear_bit(FSCACHE_COOKIE_AUX_UPDATED, &object->fscache.cookie->flags); in cachefiles_set_object_xattr()
142 clear_bit(FSCACHE_COOKIE_AUX_UPDATED, &object->fscache.cookie->flags); in cachefiles_update_object_xattr()
168 ASSERT(object->fscache.cookie->def->check_aux); in cachefiles_check_auxdata()
178 auxbuf->type != object->fscache.cookie->def->type) in cachefiles_check_auxdata()
182 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()
[all...]
H A Drdwr.c59 object = container_of(op->op.object, struct cachefiles_object, fscache); in cachefiles_read_waiter()
161 struct cachefiles_object, fscache); in cachefiles_read_copier()
179 &object->fscache.cookie->flags)) { in cachefiles_read_copier()
404 struct cachefiles_object, fscache); in cachefiles_read_or_alloc_page()
405 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_page()
697 struct cachefiles_object, fscache); in cachefiles_read_or_alloc_pages()
698 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_pages()
702 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 in cachefiles_allocate_page()
[all...]
H A Dbind.c196 fsdef->fscache.cookie = NULL; in cachefiles_daemon_add_cache()
217 fscache_object_init(&fsdef->fscache, &fscache_fsdef_index, in cachefiles_daemon_add_cache()
220 ret = fscache_add_cache(&cache->cache, &fsdef->fscache, cache->tag); in cachefiles_daemon_add_cache()
/kernel/linux/linux-5.10/fs/fscache/
H A 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
/kernel/linux/linux-6.6/fs/ceph/
H A Dcache.c21 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
35 fscache_acquire_cookie(fsc->fscache, 0, in ceph_fscache_register_inode_cookie()
99 fsc->fscache = fscache_acquire_volume(name, NULL, NULL, 0); in ceph_fscache_register_fs()
100 if (IS_ERR_OR_NULL(fsc->fscache)) { in ceph_fscache_register_fs()
101 errorfc(fc, "Unable to register fscache cookie for %s", name); in ceph_fscache_register_fs()
102 err = fsc->fscache ? PTR_ERR(fsc->fscache) : -EOPNOTSUPP; in ceph_fscache_register_fs()
103 fsc->fscache = NULL; in ceph_fscache_register_fs()
111 fscache_relinquish_volume(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
/kernel/linux/linux-5.10/fs/nfs/
H A Dfscache.c21 #include "fscache.h"
78 clp->fscache = NULL; in nfs_fscache_get_client_cookie()
83 clp->fscache = fscache_acquire_cookie(nfs_fscache_netfs.primary_index, in nfs_fscache_get_client_cookie()
89 clp, clp->fscache); in nfs_fscache_get_client_cookie()
98 clp, clp->fscache); in nfs_fscache_release_client_cookie()
100 fscache_relinquish_cookie(clp->fscache, NULL, false); in nfs_fscache_release_client_cookie()
101 clp->fscache = NULL; in nfs_fscache_release_client_cookie()
120 nfss->fscache = NULL; in nfs_fscache_get_super_cookie()
187 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie()
[all...]
H A Dfscache.h14 #include <linux/fscache.h>
73 * fscache-index.c
84 * fscache.c
113 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write()
134 if (NFS_I(inode)->fscache) in nfs_readpage_from_fscache()
148 if (NFS_I(inode)->fscache) in nfs_readpages_from_fscache()
167 * Invalidate the contents of fscache for this inode. This will not sleep.
171 fscache_invalidate(NFS_I(inode)->fscache); in nfs_fscache_invalidate()
179 fscache_wait_on_invalidate(NFS_I(inode)->fscache); in nfs_fscache_wait_on_invalidate()
187 if (server->fscache) in nfs_server_fscache_state()
[all...]
H A 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()
H A DMakefile15 nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
/kernel/linux/linux-6.6/fs/fscache/
H A DMakefile6 fscache-y := \
13 fscache-$(CONFIG_PROC_FS) += proc.o
14 fscache-$(CONFIG_FSCACHE_STATS) += stats.o
16 obj-$(CONFIG_FSCACHE) := fscache.o
/kernel/linux/linux-6.6/fs/smb/client/
H A Dfscache.c9 #include "fscache.h"
36 tcon->fscache = NULL; in cifs_fscache_get_super_cookie()
77 tcon->fscache = vcookie; in cifs_fscache_get_super_cookie()
90 cifs_dbg(FYI, "%s: (0x%p)\n", __func__, tcon->fscache); in cifs_fscache_release_super_cookie()
93 fscache_relinquish_volume(tcon->fscache, &cd, false); in cifs_fscache_release_super_cookie()
94 tcon->fscache = NULL; in cifs_fscache_release_super_cookie()
107 fscache_acquire_cookie(tcon->fscache, 0, in cifs_fscache_get_inode_cookie()
/kernel/linux/linux-6.6/fs/nfs/
H A Dfscache.c19 #include <linux/fscache.h>
24 #include "fscache.h"
141 nfss->fscache = vcookie; in nfs_fscache_get_super_cookie()
155 fscache_relinquish_volume(nfss->fscache, NULL, false); in nfs_fscache_release_super_cookie()
156 nfss->fscache = NULL; in nfs_fscache_release_super_cookie()
170 if (!(nfss->fscache && S_ISREG(inode->i_mode))) in nfs_fscache_init_inode()
176 nfss->fscache, in nfs_fscache_init_inode()
353 * If fscache is enabled, netfs will unlock pages. in nfs_netfs_folio_unlock()
/kernel/linux/linux-6.6/fs/cachefiles/
H A Dcache.c369 struct fscache_cache *fscache = cache->cache; in cachefiles_withdraw_cache() local
371 pr_info("File cache on %s unregistering\n", fscache->name); in cachefiles_withdraw_cache()
373 fscache_withdraw_cache(fscache); in cachefiles_withdraw_cache()
379 fscache_wait_for_objects(fscache); in cachefiles_withdraw_cache()
384 fscache_relinquish_cache(fscache); in cachefiles_withdraw_cache()
/kernel/linux/linux-6.6/fs/erofs/
H A Dsuper.c175 struct erofs_fscache *fscache; in erofs_init_device() local
196 fscache = erofs_fscache_register_cookie(sb, dif->path, 0); in erofs_init_device()
197 if (IS_ERR(fscache)) in erofs_init_device()
198 return PTR_ERR(fscache); in erofs_init_device()
199 dif->fscache = fscache; in erofs_init_device()
364 erofs_info(sb, "EXPERIMENTAL fscache-based on-demand read feature in use. Use at your own risk!"); in erofs_read_superblock()
632 errorfc(fc, "unsupported blksize for fscache mode"); in erofs_fc_fill_super()
743 erofs_fscache_unregister_cookie(dif->fscache); in erofs_release_device_info()
744 dif->fscache in erofs_release_device_info()
[all...]
H A Dfscache.c7 #include <linux/fscache.h>
124 * Read data from fscache (cookie, pstart, len), and fill the read data into
155 erofs_err(sb, "failed to fscache prepare_read (source %d)", source); in erofs_fscache_read_folios_async()
582 struct erofs_fscache *fscache; in erofs_fscache_register_fs() local
604 fscache = erofs_fscache_register_cookie(sb, sbi->fsid, flags); in erofs_fscache_register_fs()
605 if (IS_ERR(fscache)) in erofs_fscache_register_fs()
606 return PTR_ERR(fscache); in erofs_fscache_register_fs()
608 sbi->s_fscache = fscache; in erofs_fscache_register_fs()
/kernel/linux/linux-6.6/fs/9p/
H A Dcache.h12 #include <linux/fscache.h>

Completed in 13 milliseconds

123