From 113fa731ab3986e6c7beba75772740475903b869 Mon Sep 17 00:00:00 2001 From: charles Date: Mon, 26 Jan 2009 23:27:15 +0000 Subject: [PATCH] Change Linux kernel kmalloc flag to prevent deadlock --- yportenv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yportenv.h b/yportenv.h index bfda36e..c3fa36c 100644 --- a/yportenv.h +++ b/yportenv.h @@ -65,7 +65,7 @@ #define YAFFS_LOSTNFOUND_PREFIX "obj" /* #define YPRINTF(x) printk x */ -#define YMALLOC(x) kmalloc(x,GFP_KERNEL) +#define YMALLOC(x) kmalloc(x,GFP_NOFS) #define YFREE(x) kfree(x) #define YMALLOC_ALT(x) vmalloc(x) #define YFREE_ALT(x) vfree(x) -- 2.30.2