changeset 269:7f0dee9da61d

Change Linux kernel kmalloc flag to prevent deadlock
author charles
date Mon, 26 Jan 2009 23:27:15 +0000
parents dd5c9fa64132
children 6eb3b9bf8c78
files yportenv.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)