Lines Matching refs:wbk
298 struct afs_wb_key *wbk = NULL; in afs_get_writeback_key() local
309 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() local
369 ret = afs_get_writeback_key(vnode, &wbk); in afs_store_data()
375 op = afs_alloc_operation(wbk->key, vnode->volume); in afs_store_data()
377 afs_put_wb_key(wbk); in afs_store_data()
406 ret = afs_get_writeback_key(vnode, &wbk); in afs_store_data()
409 op->key = key_get(wbk->key); in afs_store_data()
415 afs_put_wb_key(wbk); in afs_store_data()
955 struct afs_wb_key *wbk, *tmp; in afs_prune_wb_keys() local
962 list_for_each_entry_safe(wbk, tmp, &vnode->wb_keys, vnode_link) { in afs_prune_wb_keys()
963 if (refcount_read(&wbk->usage) == 1) in afs_prune_wb_keys()
964 list_move(&wbk->vnode_link, &graveyard); in afs_prune_wb_keys()
971 wbk = list_entry(graveyard.next, struct afs_wb_key, vnode_link); in afs_prune_wb_keys()
972 list_del(&wbk->vnode_link); in afs_prune_wb_keys()
973 afs_put_wb_key(wbk); in afs_prune_wb_keys()