Lines Matching refs:key
69 struct key *key; in afs_open() local
74 key = afs_request_key(vnode->volume->cell); in afs_open()
75 if (IS_ERR(key)) { in afs_open()
76 _leave(" = %ld [key]", PTR_ERR(key)); in afs_open()
77 return PTR_ERR(key); in afs_open()
80 ret = afs_validate(vnode, key); in afs_open()
86 file->private_data = key; in afs_open()
130 struct key *key = data; in afs_page_filler() local
135 _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); in afs_page_filler()
173 ret = afs_vnode_fetch_data(vnode, key, offset, len, page); in afs_page_filler()
218 struct key *key; in afs_readpage() local
222 key = file->private_data; in afs_readpage()
223 ASSERT(key != NULL); in afs_readpage()
224 ret = afs_page_filler(key, page); in afs_readpage()
227 key = afs_request_key(AFS_FS_S(inode->i_sb)->volume->cell); in afs_readpage()
228 if (IS_ERR(key)) { in afs_readpage()
229 ret = PTR_ERR(key); in afs_readpage()
231 ret = afs_page_filler(key, page); in afs_readpage()
232 key_put(key); in afs_readpage()
244 struct key *key = file->private_data; in afs_readpages() local
249 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages()
251 ASSERT(key != NULL); in afs_readpages()
292 ret = read_cache_pages(mapping, pages, afs_page_filler, key); in afs_readpages()