Searched refs:netfs (Results 1 - 25 of 53) sorted by relevance

123

/linux-master/fs/netfs/
H A DMakefile3 netfs-y := \
16 netfs-$(CONFIG_NETFS_STATS) += stats.o
18 netfs-$(CONFIG_FSCACHE) += \
26 netfs-$(CONFIG_FSCACHE) += fscache_proc.o
28 netfs-$(CONFIG_FSCACHE_STATS) += fscache_stats.o
30 obj-$(CONFIG_NETFS_SUPPORT) += netfs.o
H A Dmain.c2 /* Miscellaneous bits for the netfs support library.
14 #include <trace/events/netfs.h>
43 * Generate a list of I/O requests in /proc/fs/netfs/requests
101 if (!proc_mkdir("fs/netfs", NULL))
103 if (!proc_create_seq("fs/netfs/requests", S_IFREG | 0444, NULL,
107 if (!proc_create_single("fs/netfs/stats", S_IFREG | 0444, NULL,
118 remove_proc_entry("fs/netfs", NULL);
127 remove_proc_entry("fs/netfs", NULL);
H A Ddirect_read.c16 #include <linux/netfs.h>
H A Dlocking.c9 #include <linux/netfs.h>
/linux-master/fs/nfs/
H A Dfscache.h40 * 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) argument
58 refcount_inc(&netfs->refcount);
61 static inline void nfs_netfs_put(struct nfs_netfs_io_data *netfs) argument
66 if (!refcount_dec_and_test(&netfs->refcount))
70 * The NFS pageio interface may read a complete page, even when netfs
74 * Correct the final length here to be no larger than the netfs subrequest
75 * length, and thus avoid netfs's "Subreq overread" warning message.
77 final_len = min_t(s64, netfs
[all...]
H A Dfscache.c20 #include <linux/netfs.h>
279 struct nfs_netfs_io_data *netfs; local
281 netfs = kzalloc(sizeof(*netfs), GFP_KERNEL_ACCOUNT);
282 if (!netfs)
284 netfs->sreq = sreq;
285 refcount_set(&netfs->refcount, 1);
286 return netfs;
299 struct nfs_netfs_io_data *netfs; local
313 netfs
334 struct nfs_netfs_io_data *netfs = hdr->netfs; local
357 struct nfs_netfs_io_data *netfs = hdr->netfs; local
[all...]
/linux-master/fs/9p/
H A Dcache.c65 v9inode->netfs.cache =
70 i_size_read(&v9inode->netfs.inode));
71 if (v9inode->netfs.cache)
H A Dv9fs.h12 #include <linux/netfs.h>
137 struct netfs_inode netfs; /* Netfslib context and vfs inode */ member in struct:v9fs_inode
145 return container_of(inode, struct v9fs_inode, netfs.inode);
151 return netfs_i_cookie(&v9inode->netfs);
H A Dvfs_addr.c19 #include <linux/netfs.h>
22 #include <trace/events/netfs.h>
/linux-master/fs/cachefiles/
H A Dmain.c21 #include <linux/netfs.h>
22 #include <trace/events/netfs.h>
/linux-master/fs/ceph/
H A Dcache.c32 WARN_ON_ONCE(ci->netfs.cache);
34 ci->netfs.cache =
39 if (ci->netfs.cache)
H A Dcache.h12 #include <linux/netfs.h>
31 return netfs_i_cookie(&ci->netfs);
H A Dcaps.c499 struct inode *inode = &ci->netfs.inode;
519 struct inode *inode = &ci->netfs.inode;
546 struct inode *inode = &ci->netfs.inode;
565 struct inode *inode = &ci->netfs.inode;
579 struct inode *inode = &ci->netfs.inode;
590 if (S_ISREG(ci->netfs.inode.i_mode) &&
605 if (S_ISDIR(ci->netfs.inode.i_mode)) {
612 if (S_ISDIR(ci->netfs.inode.i_mode) && (had & CEPH_CAP_DIR_CREATE) &&
788 struct inode *inode = &cap->ci->netfs.inode;
813 struct inode *inode = &ci->netfs
[all...]
H A Dxattr.c60 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb);
73 doutc(cl, "%p\n", &ci->netfs.inode);
165 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb);
317 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb);
325 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(ci->netfs.inode.i_sb);
574 struct inode *inode = &ci->netfs.inode;
674 struct ceph_client *cl = ceph_inode_to_client(&ci->netfs.inode);
742 struct ceph_client *cl = ceph_inode_to_client(&ci->netfs.inode);
766 struct ceph_client *cl = ceph_inode_to_client(&ci->netfs.inode);
883 struct ceph_client *cl = ceph_inode_to_client(&ci->netfs
[all...]
/linux-master/fs/afs/
H A Dwrite.c14 #include <linux/netfs.h>
15 #include <trace/events/netfs.h>
134 op->store.i_size = max(pos + size, vnode->netfs.remote_i_size);
135 op->mtime = inode_get_mtime(&vnode->netfs.inode);
269 if (!mapping_tagged(&vnode->netfs.inode.i_data, PAGECACHE_TAG_WRITEBACK) &&
270 !mapping_tagged(&vnode->netfs.inode.i_data, PAGECACHE_TAG_DIRTY)) {
H A Dinode.c57 * Set parameters for the netfs library
61 netfs_inode_init(&vnode->netfs, &afs_req_ops, true);
98 set_nlink(&vnode->netfs.inode, status->nlink);
143 inode_set_iversion_raw(&vnode->netfs.inode, status->data_version);
166 struct inode *inode = &vnode->netfs.inode;
253 vnode->netfs.remote_i_size = status->size;
257 vnode->netfs.zero_point = status->size;
298 clear_nlink(&vnode->netfs.inode);
315 drop_nlink(&vnode->netfs.inode);
316 if (vnode->netfs
[all...]
H A Dvalidation.c367 if (S_ISREG(vnode->netfs.inode.i_mode))
368 invalidate_remote_inode(&vnode->netfs.inode);
370 invalidate_inode_pages2(vnode->netfs.inode.i_mapping);
423 unmap_mapping_pages(vnode->netfs.inode.i_mapping, 0, 0, false);
H A Dfs_operation.c244 iput(&op->file[0].vnode->netfs.inode);
246 iput(&op->file[1].vnode->netfs.inode);
251 iput(&op->more_files[i].vnode->netfs.inode);
H A Ddir_edit.c112 struct address_space *mapping = vnode->netfs.inode.i_mapping;
220 i_size = i_size_read(&vnode->netfs.inode);
340 inode_inc_iversion_raw(&vnode->netfs.inode);
387 i_size = i_size_read(&vnode->netfs.inode);
467 inode_set_iversion_raw(&vnode->netfs.inode, vnode->status.data_version);
H A Ddir_silly.c134 ihold(&vnode->netfs.inode);
151 iput(&vnode->netfs.inode);
H A Dfile.c18 #include <linux/netfs.h>
197 i_size = i_size_read(&vnode->netfs.inode);
380 i_size = i_size_read(&vnode->netfs.inode);
382 i_size_write(&vnode->netfs.inode, new_i_size);
383 inode_set_bytes(&vnode->netfs.inode, new_i_size);
H A Dinternal.h698 struct netfs_inode netfs; /* Netfslib context and vfs inode */ member in struct:afs_vnode
749 return netfs_i_cookie(&vnode->netfs);
759 vnode->netfs.cache = cookie;
761 mapping_set_release_always(vnode->netfs.inode.i_mapping);
983 i_size_read(&vnode->netfs.inode), flags);
1246 return afs_i2net(&vnode->netfs.inode);
1653 return container_of(inode, struct afs_vnode, netfs.inode);
1658 return &vnode->netfs.inode;
1681 i_size_write(&vnode->netfs.inode, size);
1682 vnode->netfs
[all...]
H A Ddir.c113 struct address_space *mapping = req->vnode->netfs.inode.i_mapping;
157 __func__, dvnode->netfs.inode.i_ino,
187 struct address_space *mapping = dvnode->netfs.inode.i_mapping;
221 struct address_space *mapping = dvnode->netfs.inode.i_mapping;
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,
909 inode = &op->file[1].vnode->netfs.inode;
1157 ret = afs_do_lookup_one(&dir->netfs.inode, dentry, &fid, key, &dir_version);
1188 vnode->netfs
[all...]
/linux-master/fs/smb/client/
H A Dfscache.c118 cifs_fscache_fill_coherency(&cifsi->netfs.inode, &cd);
120 cifsi->netfs.cache =
124 i_size_read(&cifsi->netfs.inode));
125 if (cifsi->netfs.cache)
150 cifsi->netfs.cache = NULL;
H A Dfscache.h65 return netfs_i_cookie(&CIFS_I(inode)->netfs);

Completed in 227 milliseconds

123