diff --git a/fs/jffs2/malloc.c b/fs/jffs2/malloc.c index 411de8b361b2..1ce17e265159 100644 --- a/fs/jffs2/malloc.c +++ b/fs/jffs2/malloc.c @@ -246,7 +246,11 @@ void jffs2_free_node_frag(struct jffs2_node_frag *x) struct jffs2_inode_cache *jffs2_alloc_inode_cache(void) { struct jffs2_inode_cache *ret; + unsigned int nofs_flag; + + nofs_flag = memalloc_nofs_save(); ret = kmem_cache_alloc(inode_cache_slab, GFP_KERNEL); + memalloc_nofs_restore(nofs_flag); dbg_memalloc("%p\n", ret); return ret; }