Home
last modified time | relevance | path

Searched refs:wbk (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/fs/afs/
Dfile.c70 void afs_put_wb_key(struct afs_wb_key *wbk) in afs_put_wb_key() argument
72 if (refcount_dec_and_test(&wbk->usage)) { in afs_put_wb_key()
73 key_put(wbk->key); in afs_put_wb_key()
74 kfree(wbk); in afs_put_wb_key()
83 struct afs_wb_key *wbk, *p; in afs_cache_wb_key() local
85 wbk = kzalloc(sizeof(struct afs_wb_key), GFP_KERNEL); in afs_cache_wb_key()
86 if (!wbk) in afs_cache_wb_key()
88 refcount_set(&wbk->usage, 2); in afs_cache_wb_key()
89 wbk->key = af->key; in afs_cache_wb_key()
93 if (p->key == wbk->key) in afs_cache_wb_key()
[all …]
Dwrite.c361 struct afs_wb_key *wbk = NULL; in afs_store_data() local
382 wbk = list_entry(p, struct afs_wb_key, vnode_link); in afs_store_data()
383 _debug("wbk %u", key_serial(wbk->key)); in afs_store_data()
384 ret2 = key_validate(wbk->key); in afs_store_data()
393 afs_put_wb_key(wbk); in afs_store_data()
399 refcount_inc(&wbk->usage); in afs_store_data()
402 _debug("USE WB KEY %u", key_serial(wbk->key)); in afs_store_data()
405 if (afs_begin_vnode_operation(&fc, vnode, wbk->key, false)) { in afs_store_data()
436 p = wbk->vnode_link.next; in afs_store_data()
437 afs_put_wb_key(wbk); in afs_store_data()
[all …]
Dinode.c786 struct afs_wb_key *wbk = list_entry(vnode->wb_keys.next, in afs_evict_inode() local
788 list_del(&wbk->vnode_link); in afs_evict_inode()
789 afs_put_wb_key(wbk); in afs_evict_inode()