Lines Matching defs:v9inode
84 const struct v9fs_inode *v9inode = cookie_netfs_data;
86 if (buflen != sizeof(v9inode->qid.version))
89 if (memcmp(buffer, &v9inode->qid.version,
90 sizeof(v9inode->qid.version)))
104 struct v9fs_inode *v9inode;
110 v9inode = V9FS_I(inode);
111 if (v9inode->fscache)
115 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache,
117 &v9inode->qid.path,
118 sizeof(v9inode->qid.path),
119 &v9inode->qid.version,
120 sizeof(v9inode->qid.version),
121 v9inode,
122 i_size_read(&v9inode->vfs_inode),
126 inode, v9inode->fscache);
131 struct v9fs_inode *v9inode = V9FS_I(inode);
133 if (!v9inode->fscache)
136 inode, v9inode->fscache);
138 fscache_relinquish_cookie(v9inode->fscache, &v9inode->qid.version,
140 v9inode->fscache = NULL;
145 struct v9fs_inode *v9inode = V9FS_I(inode);
147 if (!v9inode->fscache)
150 inode, v9inode->fscache);
152 fscache_relinquish_cookie(v9inode->fscache, NULL, true);
153 v9inode->fscache = NULL;
158 struct v9fs_inode *v9inode = V9FS_I(inode);
160 if (!v9inode->fscache)
163 mutex_lock(&v9inode->fscache_lock);
170 mutex_unlock(&v9inode->fscache_lock);
175 struct v9fs_inode *v9inode = V9FS_I(inode);
179 if (!v9inode->fscache)
182 old = v9inode->fscache;
184 mutex_lock(&v9inode->fscache_lock);
185 fscache_relinquish_cookie(v9inode->fscache, NULL, true);
188 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache,
190 &v9inode->qid.path,
191 sizeof(v9inode->qid.path),
192 &v9inode->qid.version,
193 sizeof(v9inode->qid.version),
194 v9inode,
195 i_size_read(&v9inode->vfs_inode),
198 inode, old, v9inode->fscache);
200 mutex_unlock(&v9inode->fscache_lock);
206 struct v9fs_inode *v9inode = V9FS_I(inode);
208 BUG_ON(!v9inode->fscache);
210 return fscache_maybe_release_page(v9inode->fscache, page, gfp);
216 struct v9fs_inode *v9inode = V9FS_I(inode);
218 BUG_ON(!v9inode->fscache);
221 fscache_wait_on_page_write(v9inode->fscache, page);
223 fscache_uncache_page(v9inode->fscache, page);
246 const struct v9fs_inode *v9inode = V9FS_I(inode);
249 if (!v9inode->fscache)
252 ret = fscache_read_or_alloc_page(v9inode->fscache,
284 const struct v9fs_inode *v9inode = V9FS_I(inode);
287 if (!v9inode->fscache)
290 ret = fscache_read_or_alloc_pages(v9inode->fscache,
319 const struct v9fs_inode *v9inode = V9FS_I(inode);
322 ret = fscache_write_page(v9inode->fscache, page,
323 i_size_read(&v9inode->vfs_inode), GFP_KERNEL);
334 const struct v9fs_inode *v9inode = V9FS_I(inode);
337 fscache_wait_on_page_write(v9inode->fscache, page);