Searched refs:wbk (Results 1 – 3 of 3) sorted by relevance
82 void afs_put_wb_key(struct afs_wb_key *wbk) in afs_put_wb_key() argument84 if (wbk && refcount_dec_and_test(&wbk->usage)) { in afs_put_wb_key()85 key_put(wbk->key); in afs_put_wb_key()86 kfree(wbk); in afs_put_wb_key()95 struct afs_wb_key *wbk, *p; in afs_cache_wb_key() local97 wbk = kzalloc(sizeof(struct afs_wb_key), GFP_KERNEL); in afs_cache_wb_key()98 if (!wbk) in afs_cache_wb_key()100 refcount_set(&wbk->usage, 2); in afs_cache_wb_key()101 wbk->key = af->key; in afs_cache_wb_key()105 if (p->key == wbk->key) in afs_cache_wb_key()[all …]
298 struct afs_wb_key *wbk = NULL; in afs_get_writeback_key() local309 wbk = list_entry(p, struct afs_wb_key, vnode_link); in afs_get_writeback_key()310 _debug("wbk %u", key_serial(wbk->key)); in afs_get_writeback_key()311 ret2 = key_validate(wbk->key); in afs_get_writeback_key()313 refcount_inc(&wbk->usage); in afs_get_writeback_key()314 _debug("USE WB KEY %u", key_serial(wbk->key)); in afs_get_writeback_key()318 wbk = NULL; in afs_get_writeback_key()327 *_wbk = wbk; in afs_get_writeback_key()358 struct afs_wb_key *wbk = NULL; in afs_store_data() local369 ret = afs_get_writeback_key(vnode, &wbk); in afs_store_data()[all …]
811 struct afs_wb_key *wbk = list_entry(vnode->wb_keys.next, in afs_evict_inode() local813 list_del(&wbk->vnode_link); in afs_evict_inode()814 afs_put_wb_key(wbk); in afs_evict_inode()