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

Function journal_init_journal_head_cache

Ext4Fsd/jbd/replay.c:221–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219#endif
220
221static int journal_init_journal_head_cache(void)
222{
223 int retval;
224
225 J_ASSERT(journal_head_cache == 0);
226 journal_head_cache = kmem_cache_create("journal_head",
227 sizeof(struct journal_head),
228 0, /* offset */
229 SLAB_TEMPORARY, /* flags */
230 NULL); /* ctor */
231 retval = 0;
232 if (journal_head_cache == 0) {
233 retval = -ENOMEM;
234 printk(KERN_EMERG "JBD: no memory for journal_head cache\n");
235 }
236 return retval;
237}
238
239static void journal_destroy_journal_head_cache(void)
240{

Callers 1

journal_init_cachesFunction · 0.85

Calls 1

kmem_cache_createFunction · 0.85

Tested by

no test coverage detected