Lines Matching refs:wbk
364 struct afs_wb_key *wbk = NULL; in afs_get_writeback_key() local
375 wbk = list_entry(p, struct afs_wb_key, vnode_link); in afs_get_writeback_key()
376 _debug("wbk %u", key_serial(wbk->key)); in afs_get_writeback_key()
377 ret2 = key_validate(wbk->key); in afs_get_writeback_key()
379 refcount_inc(&wbk->usage); in afs_get_writeback_key()
380 _debug("USE WB KEY %u", key_serial(wbk->key)); in afs_get_writeback_key()
384 wbk = NULL; in afs_get_writeback_key()
393 *_wbk = wbk; in afs_get_writeback_key()
428 struct afs_wb_key *wbk = NULL; in afs_store_data() local
438 ret = afs_get_writeback_key(vnode, &wbk); in afs_store_data()
444 op = afs_alloc_operation(wbk->key, vnode->volume); in afs_store_data()
446 afs_put_wb_key(wbk); in afs_store_data()
476 ret = afs_get_writeback_key(vnode, &wbk); in afs_store_data()
479 op->key = key_get(wbk->key); in afs_store_data()
485 afs_put_wb_key(wbk); in afs_store_data()
888 struct afs_wb_key *wbk, *tmp; in afs_prune_wb_keys() local
895 list_for_each_entry_safe(wbk, tmp, &vnode->wb_keys, vnode_link) { in afs_prune_wb_keys()
896 if (refcount_read(&wbk->usage) == 1) in afs_prune_wb_keys()
897 list_move(&wbk->vnode_link, &graveyard); in afs_prune_wb_keys()
904 wbk = list_entry(graveyard.next, struct afs_wb_key, vnode_link); in afs_prune_wb_keys()
905 list_del(&wbk->vnode_link); in afs_prune_wb_keys()
906 afs_put_wb_key(wbk); in afs_prune_wb_keys()