/kernel/linux/linux-5.10/fs/fscache/ |
H A D | netfs.c | 2 /* FS-Cache netfs (client) registration 16 int __fscache_register_netfs(struct fscache_netfs *netfs) in __fscache_register_netfs() argument 20 _enter("{%s}", netfs->name); in __fscache_register_netfs() 25 netfs->name, strlen(netfs->name), in __fscache_register_netfs() 26 &netfs->version, sizeof(netfs->version), in __fscache_register_netfs() 27 netfs, 0); in __fscache_register_netfs() 35 /* check the netfs type is not already present */ in __fscache_register_netfs() 47 netfs in __fscache_register_netfs() 65 __fscache_unregister_netfs(struct fscache_netfs *netfs) __fscache_unregister_netfs() argument [all...] |
H A D | fsdef.c | 21 * When a netfs requests caching facilities, FS-Cache will, if one doesn't 23 * of the netfs ("AFS" for example), and the auxiliary data holding the index 24 * structure version supplied by the netfs: 38 * to the netfs. This is then the root handle by which the netfs accesses the 60 * a specific netfs and only applicable to a particular version of the index 61 * structure used by that netfs. 64 .name = "FSDEF.netfs", 71 * matches the one the netfs gave us 79 struct fscache_netfs *netfs in fscache_fsdef_netfs_check_aux() local [all...] |
H A D | Makefile | 11 netfs.o \
|
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | fscache.c | 20 #include <linux/netfs.h> 285 struct nfs_netfs_io_data *netfs; in nfs_netfs_alloc() local 287 netfs = kzalloc(sizeof(*netfs), GFP_KERNEL_ACCOUNT); in nfs_netfs_alloc() 288 if (!netfs) in nfs_netfs_alloc() 290 netfs->sreq = sreq; in nfs_netfs_alloc() 291 refcount_set(&netfs->refcount, 1); in nfs_netfs_alloc() 292 return netfs; in nfs_netfs_alloc() 305 struct nfs_netfs_io_data *netfs; in nfs_netfs_issue_read() local 319 netfs in nfs_netfs_issue_read() 340 struct nfs_netfs_io_data *netfs = hdr->netfs; nfs_netfs_initiate_read() local 363 struct nfs_netfs_io_data *netfs = hdr->netfs; nfs_netfs_read_completion() local [all...] |
H A D | fscache.h | 40 * with their own read completion. In netfs, we can only call 43 * and only call netfs via netfs_subreq_terminated() once. 56 static inline void nfs_netfs_get(struct nfs_netfs_io_data *netfs) in nfs_netfs_get() argument 58 refcount_inc(&netfs->refcount); in nfs_netfs_get() 61 static inline void nfs_netfs_put(struct nfs_netfs_io_data *netfs) in nfs_netfs_put() argument 66 if (!refcount_dec_and_test(&netfs->refcount)) in nfs_netfs_put() 70 * The NFS pageio interface may read a complete page, even when netfs in nfs_netfs_put() 74 * Correct the final length here to be no larger than the netfs subrequest in nfs_netfs_put() 75 * length, and thus avoid netfs's "Subreq overread" warning message. in nfs_netfs_put() 77 final_len = min_t(s64, netfs in nfs_netfs_put() [all...] |
/kernel/linux/linux-6.6/fs/netfs/ |
H A D | Makefile | 3 netfs-y := \ 10 netfs-$(CONFIG_NETFS_STATS) += stats.o 12 obj-$(CONFIG_NETFS_SUPPORT) := netfs.o
|
H A D | internal.h | 8 #include <linux/netfs.h> 10 #include <trace/events/netfs.h> 16 #define pr_fmt(fmt) "netfs: " fmt
|
H A D | main.c | 2 /* Miscellaneous bits for the netfs support library. 12 #include <trace/events/netfs.h>
|
H A D | iterator.c | 13 #include <linux/netfs.h>
|
/kernel/linux/linux-6.6/fs/afs/ |
H A D | inode.c | 57 * Set parameters for the netfs library 61 netfs_inode_init(&vnode->netfs, &afs_req_ops); in afs_set_netfs_context() 99 set_nlink(&vnode->netfs.inode, status->nlink); in afs_inode_init_from_status() 144 inode_set_iversion_raw(&vnode->netfs.inode, status->data_version); in afs_inode_init_from_status() 168 struct inode *inode = &vnode->netfs.inode; in afs_apply_status() 252 vnode->netfs.remote_i_size = status->size; in afs_apply_status() 295 clear_nlink(&vnode->netfs.inode); in afs_vnode_commit_status() 312 drop_nlink(&vnode->netfs.inode); in afs_vnode_commit_status() 313 if (vnode->netfs.inode.i_nlink == 0) { in afs_vnode_commit_status() 332 if (vnode->netfs in afs_fetch_status_success() [all...] |
H A D | write.c | 14 #include <linux/netfs.h> 87 ret = netfs_write_begin(&vnode->netfs, file, mapping, pos, len, &folio, fsdata); in afs_write_begin() 181 i_size = i_size_read(&vnode->netfs.inode); in afs_write_end() 184 i_size = i_size_read(&vnode->netfs.inode); in afs_write_end() 292 struct address_space *mapping = vnode->netfs.inode.i_mapping; in afs_pages_written_back() 426 op->store.i_size = max(pos + size, vnode->netfs.remote_i_size); in afs_store_data() 427 op->mtime = vnode->netfs.inode.i_mtime; in afs_store_data() 590 loff_t i_size = i_size_read(&vnode->netfs.inode); in afs_write_back_from_locked_folio() 865 if (IS_SWAPFILE(&vnode->netfs.inode)) { in afs_file_write() 978 if (!mapping_tagged(&vnode->netfs in afs_prune_wb_keys() [all...] |
H A D | dir_edit.c | 112 struct address_space *mapping = vnode->netfs.inode.i_mapping; in afs_dir_get_folio() 220 i_size = i_size_read(&vnode->netfs.inode); in afs_edit_dir_add() 340 inode_inc_iversion_raw(&vnode->netfs.inode); in afs_edit_dir_add() 387 i_size = i_size_read(&vnode->netfs.inode); in afs_edit_dir_remove() 467 inode_set_iversion_raw(&vnode->netfs.inode, vnode->status.data_version); in afs_edit_dir_remove()
|
H A D | dir.c | 113 struct address_space *mapping = req->vnode->netfs.inode.i_mapping; in afs_dir_read_cleanup() 157 __func__, dvnode->netfs.inode.i_ino, in afs_dir_check_folio() 187 struct address_space *mapping = dvnode->netfs.inode.i_mapping; in afs_dir_dump() 221 struct address_space *mapping = dvnode->netfs.inode.i_mapping; in afs_dir_check() 273 struct address_space *mapping = dvnode->netfs.inode.i_mapping; 292 i_size = i_size_read(&dvnode->netfs.inode); 312 iov_iter_xarray(&req->def_iter, ITER_DEST, &dvnode->netfs.inode.i_mapping->i_pages, 902 inode = &op->file[1].vnode->netfs.inode; in afs_do_lookup() 1144 ret = afs_do_lookup_one(&dir->netfs.inode, dentry, &fid, key, &dir_version); in afs_d_revalidate() 1175 vnode->netfs in afs_d_revalidate() [all...] |
H A D | internal.h | 624 struct netfs_inode netfs; /* Netfslib context and vfs inode */ member 675 return netfs_i_cookie(&vnode->netfs); in afs_vnode_cache() 685 vnode->netfs.cache = cookie; in afs_vnode_set_cache() 687 mapping_set_release_always(vnode->netfs.inode.i_mapping); in afs_vnode_set_cache() 894 i_size_read(&vnode->netfs.inode), flags); in afs_invalidate_cache() 1213 return afs_i2net(&vnode->netfs.inode); in afs_v2net() 1589 return container_of(inode, struct afs_vnode, netfs.inode); in AFS_FS_I() 1594 return &vnode->netfs.inode; in AFS_VNODE_TO_I() 1617 i_size_write(&vnode->netfs.inode, size); in afs_set_i_size() 1618 vnode->netfs in afs_set_i_size() [all...] |
H A D | fs_operation.c | 235 iput(&op->file[0].vnode->netfs.inode); in afs_put_operation() 237 iput(&op->file[1].vnode->netfs.inode); in afs_put_operation() 242 iput(&op->more_files[i].vnode->netfs.inode); in afs_put_operation()
|
/kernel/linux/linux-6.6/fs/9p/ |
H A D | cache.c | 65 v9inode->netfs.cache = in v9fs_cache_inode_get_cookie() 70 i_size_read(&v9inode->netfs.inode)); in v9fs_cache_inode_get_cookie() 71 if (v9inode->netfs.cache) in v9fs_cache_inode_get_cookie()
|
H A D | v9fs.h | 12 #include <linux/netfs.h> 137 struct netfs_inode netfs; /* Netfslib context and vfs inode */ member 145 return container_of(inode, struct v9fs_inode, netfs.inode); in V9FS_I() 151 return netfs_i_cookie(&v9inode->netfs); in v9fs_inode_cookie()
|
H A D | vfs_addr.c | 19 #include <linux/netfs.h> 147 i_size_read(&v9inode->netfs.inode), 0); in v9fs_write_to_cache_done() 289 retval = netfs_write_begin(&v9inode->netfs, filp, mapping, pos, len, &folio, fsdata); in v9fs_write_begin()
|
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | fscache.c | 104 cifs_fscache_fill_coherency(&cifsi->netfs.inode, &cd); in cifs_fscache_get_inode_cookie() 106 cifsi->netfs.cache = in cifs_fscache_get_inode_cookie() 110 i_size_read(&cifsi->netfs.inode)); in cifs_fscache_get_inode_cookie() 111 if (cifsi->netfs.cache) in cifs_fscache_get_inode_cookie() 136 cifsi->netfs.cache = NULL; in cifs_fscache_release_inode_cookie()
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | cache.c | 32 WARN_ON_ONCE(ci->netfs.cache); in ceph_fscache_register_inode_cookie() 34 ci->netfs.cache = in ceph_fscache_register_inode_cookie() 39 if (ci->netfs.cache) in ceph_fscache_register_inode_cookie()
|
H A D | caps.c | 497 dout("__cap_set_timeouts %p %lu\n", &ci->netfs.inode, in __cap_set_timeouts() 512 dout("__cap_delay_requeue %p flags 0x%lx at %lu\n", &ci->netfs.inode, in __cap_delay_requeue() 536 dout("__cap_delay_requeue_front %p\n", &ci->netfs.inode); in __cap_delay_requeue_front() 553 dout("__cap_delay_cancel %p\n", &ci->netfs.inode); in __cap_delay_cancel() 573 if (S_ISREG(ci->netfs.inode.i_mode) && in __check_cap_issue() 588 if (S_ISDIR(ci->netfs.inode.i_mode)) { in __check_cap_issue() 589 dout(" marking %p NOT complete\n", &ci->netfs.inode); in __check_cap_issue() 595 if (S_ISDIR(ci->netfs.inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) && in __check_cap_issue() 777 "but STALE (gen %u vs %u)\n", &cap->ci->netfs.inode, in __cap_is_valid() 803 &ci->netfs in __ceph_caps_issued() [all...] |
H A D | cache.h | 12 #include <linux/netfs.h> 31 return netfs_i_cookie(&ci->netfs); in ceph_fscache_cookie()
|
/kernel/linux/linux-6.6/fs/cachefiles/ |
H A D | main.c | 21 #include <linux/netfs.h> 22 #include <trace/events/netfs.h>
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | fscache.h | 9 * Documentation/filesystems/caching/netfs-api.rst 83 /* consult the netfs about the state of an object 85 * - the netfs data from the cookie being used as the target is 136 atomic_t n_active; /* number of active users of netfs ptrs */ 143 void *netfs_data; /* back pointer to netfs */ 181 * netfs does actually have a valid token 232 * @netfs: The description of the filesystem 236 * See Documentation/filesystems/caching/netfs-api.rst for a complete 240 int fscache_register_netfs(struct fscache_netfs *netfs) in fscache_register_netfs() argument 243 return __fscache_register_netfs(netfs); in fscache_register_netfs() 260 fscache_unregister_netfs(struct fscache_netfs *netfs) fscache_unregister_netfs() argument [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | fscache.h | 197 TP_PROTO(struct fscache_netfs *netfs), 199 TP_ARGS(netfs), 207 __entry->cookie = netfs->primary_index; 208 strncpy(__entry->name, netfs->name, 8);
|