MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / ext2_init_bh

Function ext2_init_bh

Ext4Fsd/linux.c:298–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296} g_jbh = {NULL, ATOMIC_INIT(0)};
297
298int
299ext2_init_bh()
300{
301 g_jbh.bh_count.counter = 0;
302 g_jbh.bh_acount.counter = 0;
303 g_jbh.bh_cache = kmem_cache_create(
304 "ext2_bh", /* bh */
305 sizeof(struct buffer_head),
306 0, /* offset */
307 SLAB_TEMPORARY, /* flags */
308 NULL); /* ctor */
309 if (g_jbh.bh_cache == NULL) {
310 printk(KERN_EMERG "JBD: failed to create handle cache\n");
311 return -ENOMEM;
312 }
313 return 0;
314}
315
316void
317ext2_destroy_bh()

Callers 1

ext2_init_linuxFunction · 0.85

Calls 1

kmem_cache_createFunction · 0.85

Tested by

no test coverage detected