Lines Matching refs:v9inode
84 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()
119 &v9inode->qid.version, in v9fs_cache_inode_get_cookie()
120 sizeof(v9inode->qid.version), in v9fs_cache_inode_get_cookie()
121 v9inode, in v9fs_cache_inode_get_cookie()
122 i_size_read(&v9inode->vfs_inode), in v9fs_cache_inode_get_cookie()
126 inode, v9inode->fscache); in v9fs_cache_inode_get_cookie()
131 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_cache_inode_put_cookie() local
133 if (!v9inode->fscache) in v9fs_cache_inode_put_cookie()
136 inode, v9inode->fscache); in v9fs_cache_inode_put_cookie()
138 fscache_relinquish_cookie(v9inode->fscache, &v9inode->qid.version, in v9fs_cache_inode_put_cookie()
140 v9inode->fscache = NULL; in v9fs_cache_inode_put_cookie()
145 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_cache_inode_flush_cookie() local
147 if (!v9inode->fscache) in v9fs_cache_inode_flush_cookie()
150 inode, v9inode->fscache); in v9fs_cache_inode_flush_cookie()
152 fscache_relinquish_cookie(v9inode->fscache, NULL, true); in v9fs_cache_inode_flush_cookie()
153 v9inode->fscache = NULL; in v9fs_cache_inode_flush_cookie()
158 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_cache_inode_set_cookie() local
160 if (!v9inode->fscache) in v9fs_cache_inode_set_cookie()
163 mutex_lock(&v9inode->fscache_lock); in v9fs_cache_inode_set_cookie()
170 mutex_unlock(&v9inode->fscache_lock); in v9fs_cache_inode_set_cookie()
175 struct v9fs_inode *v9inode = V9FS_I(inode); in v9fs_cache_inode_reset_cookie() local
179 if (!v9inode->fscache) in v9fs_cache_inode_reset_cookie()
182 old = v9inode->fscache; in v9fs_cache_inode_reset_cookie()
184 mutex_lock(&v9inode->fscache_lock); in v9fs_cache_inode_reset_cookie()
185 fscache_relinquish_cookie(v9inode->fscache, NULL, true); in v9fs_cache_inode_reset_cookie()
188 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_reset_cookie()
190 &v9inode->qid.path, in v9fs_cache_inode_reset_cookie()
191 sizeof(v9inode->qid.path), in v9fs_cache_inode_reset_cookie()
192 &v9inode->qid.version, in v9fs_cache_inode_reset_cookie()
193 sizeof(v9inode->qid.version), in v9fs_cache_inode_reset_cookie()
194 v9inode, in v9fs_cache_inode_reset_cookie()
195 i_size_read(&v9inode->vfs_inode), in v9fs_cache_inode_reset_cookie()
198 inode, old, v9inode->fscache); in v9fs_cache_inode_reset_cookie()
200 mutex_unlock(&v9inode->fscache_lock); in v9fs_cache_inode_reset_cookie()
206 struct v9fs_inode *v9inode = V9FS_I(inode); in __v9fs_fscache_release_page() local
208 BUG_ON(!v9inode->fscache); in __v9fs_fscache_release_page()
210 return fscache_maybe_release_page(v9inode->fscache, page, gfp); in __v9fs_fscache_release_page()
216 struct v9fs_inode *v9inode = V9FS_I(inode); in __v9fs_fscache_invalidate_page() local
218 BUG_ON(!v9inode->fscache); in __v9fs_fscache_invalidate_page()
221 fscache_wait_on_page_write(v9inode->fscache, page); in __v9fs_fscache_invalidate_page()
223 fscache_uncache_page(v9inode->fscache, page); in __v9fs_fscache_invalidate_page()
246 const struct v9fs_inode *v9inode = V9FS_I(inode); in __v9fs_readpage_from_fscache() local
249 if (!v9inode->fscache) in __v9fs_readpage_from_fscache()
252 ret = fscache_read_or_alloc_page(v9inode->fscache, in __v9fs_readpage_from_fscache()
284 const struct v9fs_inode *v9inode = V9FS_I(inode); in __v9fs_readpages_from_fscache() local
287 if (!v9inode->fscache) in __v9fs_readpages_from_fscache()
290 ret = fscache_read_or_alloc_pages(v9inode->fscache, in __v9fs_readpages_from_fscache()
319 const struct v9fs_inode *v9inode = V9FS_I(inode); in __v9fs_readpage_to_fscache() local
322 ret = fscache_write_page(v9inode->fscache, page, in __v9fs_readpage_to_fscache()
323 i_size_read(&v9inode->vfs_inode), GFP_KERNEL); in __v9fs_readpage_to_fscache()
334 const struct v9fs_inode *v9inode = V9FS_I(inode); in __v9fs_fscache_wait_on_page_write() local
337 fscache_wait_on_page_write(v9inode->fscache, page); in __v9fs_fscache_wait_on_page_write()