Home
last modified time | relevance | path

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

/fs/afs/
Dwrite.c300 struct afs_wb_key *wbk = NULL; in afs_get_writeback_key() local
311 wbk = list_entry(p, struct afs_wb_key, vnode_link); in afs_get_writeback_key()
312 _debug("wbk %u", key_serial(wbk->key)); in afs_get_writeback_key()
313 ret2 = key_validate(wbk->key); in afs_get_writeback_key()
315 refcount_inc(&wbk->usage); in afs_get_writeback_key()
316 _debug("USE WB KEY %u", key_serial(wbk->key)); in afs_get_writeback_key()
320 wbk = NULL; in afs_get_writeback_key()
329 *_wbk = wbk; in afs_get_writeback_key()
360 struct afs_wb_key *wbk = NULL; in afs_store_data() local
371 ret = afs_get_writeback_key(vnode, &wbk); in afs_store_data()
[all …]
Dfile.c76 void afs_put_wb_key(struct afs_wb_key *wbk) in afs_put_wb_key() argument
78 if (wbk && refcount_dec_and_test(&wbk->usage)) { in afs_put_wb_key()
79 key_put(wbk->key); in afs_put_wb_key()
80 kfree(wbk); in afs_put_wb_key()
89 struct afs_wb_key *wbk, *p; in afs_cache_wb_key() local
91 wbk = kzalloc(sizeof(struct afs_wb_key), GFP_KERNEL); in afs_cache_wb_key()
92 if (!wbk) in afs_cache_wb_key()
94 refcount_set(&wbk->usage, 2); in afs_cache_wb_key()
95 wbk->key = af->key; in afs_cache_wb_key()
99 if (p->key == wbk->key) in afs_cache_wb_key()
[all …]
Dinode.c796 struct afs_wb_key *wbk = list_entry(vnode->wb_keys.next, in afs_evict_inode() local
798 list_del(&wbk->vnode_link); in afs_evict_inode()
799 afs_put_wb_key(wbk); in afs_evict_inode()