]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/f2fs/gc.c
f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed, kmem cache allocation
[karo-tx-linux.git] / fs / f2fs / gc.c
index fbad96846c7cb6bb1f2fc799897c8f5f0d67a23a..7914b92a696748ad191b8c0defcfe481085e2a14 100644 (file)
@@ -361,12 +361,8 @@ static void add_gc_inode(struct inode *inode, struct list_head *ilist)
                iput(inode);
                return;
        }
-repeat:
-       new_ie = kmem_cache_alloc(winode_slab, GFP_NOFS);
-       if (!new_ie) {
-               cond_resched();
-               goto repeat;
-       }
+
+       new_ie = f2fs_kmem_cache_alloc(winode_slab, GFP_NOFS);
        new_ie->inode = inode;
        list_add_tail(&new_ie->list, ilist);
 }