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

Function journal_init_handle_cache

Ext4Fsd/jbd/replay.c:1585–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1583struct kmem_cache *jbd_handle_cache = NULL;
1584
1585static int __init journal_init_handle_cache(void)
1586{
1587 jbd_handle_cache = kmem_cache_create("journal_handle",
1588 sizeof(handle_t),
1589 0, /* offset */
1590 SLAB_TEMPORARY, /* flags */
1591 NULL); /* ctor */
1592 if (jbd_handle_cache == NULL) {
1593 printk(KERN_EMERG "JBD: failed to create handle cache\n");
1594 return -ENOMEM;
1595 }
1596 return 0;
1597}
1598
1599static void journal_destroy_handle_cache(void)
1600{

Callers 1

journal_init_cachesFunction · 0.85

Calls 1

kmem_cache_createFunction · 0.85

Tested by

no test coverage detected