aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jbd/journal.c')
-rw-r--r--fs/jbd/journal.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index 46fe7439fb91..06ab3c10b1b8 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -1668,7 +1668,7 @@ static int journal_create_jbd_slab(size_t slab_size)
1668 * boundary. 1668 * boundary.
1669 */ 1669 */
1670 jbd_slab[i] = kmem_cache_create(jbd_slab_names[i], 1670 jbd_slab[i] = kmem_cache_create(jbd_slab_names[i],
1671 slab_size, slab_size, 0, NULL, NULL); 1671 slab_size, slab_size, 0, NULL);
1672 if (!jbd_slab[i]) { 1672 if (!jbd_slab[i]) {
1673 printk(KERN_EMERG "JBD: no memory for jbd_slab cache\n"); 1673 printk(KERN_EMERG "JBD: no memory for jbd_slab cache\n");
1674 return -ENOMEM; 1674 return -ENOMEM;
@@ -1711,8 +1711,7 @@ static int journal_init_journal_head_cache(void)
1711 sizeof(struct journal_head), 1711 sizeof(struct journal_head),
1712 0, /* offset */ 1712 0, /* offset */
1713 0, /* flags */ 1713 0, /* flags */
1714 NULL, /* ctor */ 1714 NULL); /* ctor */
1715 NULL); /* dtor */
1716 retval = 0; 1715 retval = 0;
1717 if (journal_head_cache == 0) { 1716 if (journal_head_cache == 0) {
1718 retval = -ENOMEM; 1717 retval = -ENOMEM;
@@ -2008,8 +2007,7 @@ static int __init journal_init_handle_cache(void)
2008 sizeof(handle_t), 2007 sizeof(handle_t),
2009 0, /* offset */ 2008 0, /* offset */
2010 0, /* flags */ 2009 0, /* flags */
2011 NULL, /* ctor */ 2010 NULL); /* ctor */
2012 NULL); /* dtor */
2013 if (jbd_handle_cache == NULL) { 2011 if (jbd_handle_cache == NULL) {
2014 printk(KERN_EMERG "JBD: failed to create handle cache\n"); 2012 printk(KERN_EMERG "JBD: failed to create handle cache\n");
2015 return -ENOMEM; 2013 return -ENOMEM;