| 296 | } g_jbh = {NULL, ATOMIC_INIT(0)}; |
| 297 | |
| 298 | int |
| 299 | ext2_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 | |
| 316 | void |
| 317 | ext2_destroy_bh() |
no test coverage detected