Home
last modified time | relevance | path

Searched refs:objnode (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/drivers/staging/zcache/
Dtmem.c214 struct tmem_objnode *objnode; member
237 struct tmem_objnode *objnode; in tmem_objnode_alloc() local
242 objnode = (*tmem_hostops.objnode_alloc)(obj->pool); in tmem_objnode_alloc()
243 if (unlikely(objnode == NULL)) in tmem_objnode_alloc()
245 objnode->obj = obj; in tmem_objnode_alloc()
246 SET_SENTINEL(objnode, OBJNODE); in tmem_objnode_alloc()
247 memset(&objnode->slots, 0, sizeof(objnode->slots)); in tmem_objnode_alloc()
248 objnode->slots_in_use = 0; in tmem_objnode_alloc()
251 return objnode; in tmem_objnode_alloc()
254 static void tmem_objnode_free(struct tmem_objnode *objnode) in tmem_objnode_free() argument
[all …]
Dzcache.c754 struct tmem_objnode *objnode; in zcache_do_preload() local
771 objnode = kmem_cache_alloc(zcache_objnode_cache, in zcache_do_preload()
773 if (unlikely(objnode == NULL)) { in zcache_do_preload()
780 kp->objnodes[kp->nr++] = objnode; in zcache_do_preload()
782 kmem_cache_free(zcache_objnode_cache, objnode); in zcache_do_preload()
836 struct tmem_objnode *objnode = NULL; in zcache_objnode_alloc() local
843 objnode = kp->objnodes[kp->nr - 1]; in zcache_objnode_alloc()
844 BUG_ON(objnode == NULL); in zcache_objnode_alloc()
851 return objnode; in zcache_objnode_alloc()
854 static void zcache_objnode_free(struct tmem_objnode *objnode, in zcache_objnode_free() argument
[all …]