Home
last modified time | relevance | path

Searched refs:v9inode (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/fs/9p/
Dcache.c84 const struct v9fs_inode *v9inode = cookie_netfs_data; in v9fs_cache_inode_check_aux() local
86 if (buflen != sizeof(v9inode->qid.version)) in v9fs_cache_inode_check_aux()
89 if (memcmp(buffer, &v9inode->qid.version, in v9fs_cache_inode_check_aux()
90 sizeof(v9inode->qid.version))) in v9fs_cache_inode_check_aux()
104 struct v9fs_inode *v9inode; in v9fs_cache_inode_get_cookie() local
110 v9inode = V9FS_I(inode); in v9fs_cache_inode_get_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()
117 &v9inode->qid.path, in v9fs_cache_inode_get_cookie()
118 sizeof(v9inode->qid.path), in v9fs_cache_inode_get_cookie()
[all …]
Dvfs_file.c47 struct v9fs_inode *v9inode; in v9fs_file_open() local
53 v9inode = V9FS_I(inode); in v9fs_file_open()
77 mutex_lock(&v9inode->v_mutex); in v9fs_file_open()
79 !v9inode->writeback_fid && in v9fs_file_open()
91 mutex_unlock(&v9inode->v_mutex); in v9fs_file_open()
94 v9inode->writeback_fid = (void *) fid; in v9fs_file_open()
96 mutex_unlock(&v9inode->v_mutex); in v9fs_file_open()
512 struct v9fs_inode *v9inode; in v9fs_mmap_file_mmap() local
516 v9inode = V9FS_I(inode); in v9fs_mmap_file_mmap()
517 mutex_lock(&v9inode->v_mutex); in v9fs_mmap_file_mmap()
[all …]
Dvfs_inode.c225 struct v9fs_inode *v9inode; in v9fs_alloc_inode() local
226 v9inode = kmem_cache_alloc(v9fs_inode_cache, GFP_KERNEL); in v9fs_alloc_inode()
227 if (!v9inode) in v9fs_alloc_inode()
230 v9inode->fscache = NULL; in v9fs_alloc_inode()
231 mutex_init(&v9inode->fscache_lock); in v9fs_alloc_inode()
233 v9inode->writeback_fid = NULL; in v9fs_alloc_inode()
234 v9inode->cache_validity = 0; in v9fs_alloc_inode()
235 mutex_init(&v9inode->v_mutex); in v9fs_alloc_inode()
236 return &v9inode->vfs_inode; in v9fs_alloc_inode()
377 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_evict_inode() local
[all …]
Dvfs_super.c293 struct v9fs_inode *v9inode; in v9fs_write_inode() local
299 v9inode = V9FS_I(inode); in v9fs_write_inode()
300 if (!v9inode->writeback_fid) in v9fs_write_inode()
304 ret = p9_client_wstat(v9inode->writeback_fid, &wstat); in v9fs_write_inode()
316 struct v9fs_inode *v9inode; in v9fs_write_inode_dotl() local
321 v9inode = V9FS_I(inode); in v9fs_write_inode_dotl()
323 __func__, inode, v9inode->writeback_fid); in v9fs_write_inode_dotl()
324 if (!v9inode->writeback_fid) in v9fs_write_inode_dotl()
327 ret = p9_client_fsync(v9inode->writeback_fid, 0); in v9fs_write_inode_dotl()
Dvfs_addr.c151 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_vfs_writepage_locked() local
168 BUG_ON(!v9inode->writeback_fid); in v9fs_vfs_writepage_locked()
172 p9_client_write(v9inode->writeback_fid, page_offset(page), &from, &err); in v9fs_vfs_writepage_locked()
261 struct v9fs_inode *v9inode; in v9fs_write_begin() local
268 v9inode = V9FS_I(inode); in v9fs_write_begin()
275 BUG_ON(!v9inode->writeback_fid); in v9fs_write_begin()
282 retval = v9fs_fid_readpage(v9inode->writeback_fid, page); in v9fs_write_begin()
Dvfs_dentry.c66 struct v9fs_inode *v9inode; in v9fs_lookup_revalidate() local
75 v9inode = V9FS_I(inode); in v9fs_lookup_revalidate()
76 if (v9inode->cache_validity & V9FS_INO_INVALID_ATTR) { in v9fs_lookup_revalidate()
Dvfs_inode_dotl.c58 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_test_inode_dotl() local
69 if (memcmp(&v9inode->qid.version, in v9fs_test_inode_dotl()
70 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode_dotl()
73 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode_dotl()
76 if (v9inode->qid.path != st->qid.path) in v9fs_test_inode_dotl()
89 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_set_inode_dotl() local
92 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode_dotl()
238 struct v9fs_inode *v9inode; in v9fs_vfs_atomic_open_dotl() local
317 v9inode = V9FS_I(inode); in v9fs_vfs_atomic_open_dotl()
318 mutex_lock(&v9inode->v_mutex); in v9fs_vfs_atomic_open_dotl()
[all …]
Dv9fs_vfs.h69 struct v9fs_inode *v9inode; in v9fs_invalidate_inode_attr() local
70 v9inode = V9FS_I(inode); in v9fs_invalidate_inode_attr()
71 v9inode->cache_validity |= V9FS_INO_INVALID_ATTR; in v9fs_invalidate_inode_attr()
Dcache.h77 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_uncache_page() local
78 fscache_uncache_page(v9inode->fscache, page); in v9fs_uncache_page()
Dv9fs.c622 struct v9fs_inode *v9inode = (struct v9fs_inode *)foo; in v9fs_inode_init_once() local
624 v9inode->fscache = NULL; in v9fs_inode_init_once()
626 memset(&v9inode->qid, 0, sizeof(v9inode->qid)); in v9fs_inode_init_once()
627 inode_init_once(&v9inode->vfs_inode); in v9fs_inode_init_once()