]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jbd/revoke.c
ext4: Fix fallocate error path
[linux-2.6-omap-h63xx.git] / fs / jbd / revoke.c
index 8db2fa25170b7ae55cfd6625ec78fca127920578..1bb43e987f4b4ff4f0e37a2d578d34c1642cf6c0 100644 (file)
@@ -138,7 +138,7 @@ repeat:
 oom:
        if (!journal_oom_retry)
                return -ENOMEM;
-       jbd_debug(1, "ENOMEM in %s, retrying\n", __FUNCTION__);
+       jbd_debug(1, "ENOMEM in %s, retrying\n", __func__);
        yield();
        goto repeat;
 }
@@ -170,14 +170,16 @@ int __init journal_init_revoke_caches(void)
 {
        revoke_record_cache = kmem_cache_create("revoke_record",
                                           sizeof(struct jbd_revoke_record_s),
-                                          0, SLAB_HWCACHE_ALIGN, NULL, NULL);
-       if (revoke_record_cache == 0)
+                                          0,
+                                          SLAB_HWCACHE_ALIGN|SLAB_TEMPORARY,
+                                          NULL);
+       if (!revoke_record_cache)
                return -ENOMEM;
 
        revoke_table_cache = kmem_cache_create("revoke_table",
                                           sizeof(struct jbd_revoke_table_s),
-                                          0, 0, NULL, NULL);
-       if (revoke_table_cache == 0) {
+                                          0, SLAB_TEMPORARY, NULL);
+       if (!revoke_table_cache) {
                kmem_cache_destroy(revoke_record_cache);
                revoke_record_cache = NULL;
                return -ENOMEM;