| 1583 | struct kmem_cache *jbd_handle_cache = NULL; |
| 1584 | |
| 1585 | static 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 | |
| 1599 | static void journal_destroy_handle_cache(void) |
| 1600 | { |
no test coverage detected