Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/staging/zcache/
Dtmem.c215 struct tmem_objnode *objnode; member
238 struct tmem_objnode *objnode; in tmem_objnode_alloc() local
243 objnode = (*tmem_hostops.objnode_alloc)(obj->pool); in tmem_objnode_alloc()
244 if (unlikely(objnode == NULL)) in tmem_objnode_alloc()
246 objnode->obj = obj; in tmem_objnode_alloc()
247 SET_SENTINEL(objnode, OBJNODE); in tmem_objnode_alloc()
248 memset(&objnode->slots, 0, sizeof(objnode->slots)); in tmem_objnode_alloc()
249 objnode->slots_in_use = 0; in tmem_objnode_alloc()
252 return objnode; in tmem_objnode_alloc()
255 static void tmem_objnode_free(struct tmem_objnode *objnode) in tmem_objnode_free() argument
[all …]
Dzcache-main.c1029 struct tmem_objnode *objnode; in zcache_do_preload() local
1042 objnode = kmem_cache_alloc(zcache_objnode_cache, in zcache_do_preload()
1044 if (unlikely(objnode == NULL)) { in zcache_do_preload()
1051 kp->objnodes[kp->nr++] = objnode; in zcache_do_preload()
1053 kmem_cache_free(zcache_objnode_cache, objnode); in zcache_do_preload()
1105 struct tmem_objnode *objnode = NULL; in zcache_objnode_alloc() local
1112 objnode = kp->objnodes[kp->nr - 1]; in zcache_objnode_alloc()
1113 BUG_ON(objnode == NULL); in zcache_objnode_alloc()
1120 return objnode; in zcache_objnode_alloc()
1123 static void zcache_objnode_free(struct tmem_objnode *objnode, in zcache_objnode_free() argument
[all …]
/linux-3.4.99/drivers/staging/ramster/
Dtmem.c216 struct tmem_objnode *objnode; member
239 struct tmem_objnode *objnode; in tmem_objnode_alloc() local
244 objnode = (*tmem_hostops.objnode_alloc)(obj->pool); in tmem_objnode_alloc()
245 if (unlikely(objnode == NULL)) in tmem_objnode_alloc()
247 objnode->obj = obj; in tmem_objnode_alloc()
248 SET_SENTINEL(objnode, OBJNODE); in tmem_objnode_alloc()
249 memset(&objnode->slots, 0, sizeof(objnode->slots)); in tmem_objnode_alloc()
250 objnode->slots_in_use = 0; in tmem_objnode_alloc()
253 return objnode; in tmem_objnode_alloc()
256 static void tmem_objnode_free(struct tmem_objnode *objnode) in tmem_objnode_free() argument
[all …]
Dzcache-main.c1495 struct tmem_objnode *objnode; in zcache_do_preload() local
1509 objnode = kmem_cache_alloc(zcache_objnode_cache, in zcache_do_preload()
1511 if (unlikely(objnode == NULL)) { in zcache_do_preload()
1518 kp->objnodes[kp->nr++] = objnode; in zcache_do_preload()
1520 kmem_cache_free(zcache_objnode_cache, objnode); in zcache_do_preload()
1606 struct tmem_objnode *objnode = NULL; in zcache_objnode_alloc() local
1613 objnode = kp->objnodes[kp->nr - 1]; in zcache_objnode_alloc()
1614 BUG_ON(objnode == NULL); in zcache_objnode_alloc()
1621 return objnode; in zcache_objnode_alloc()
1624 static void zcache_objnode_free(struct tmem_objnode *objnode, in zcache_objnode_free() argument
[all …]