Change Linux kernel kmalloc flag to prevent deadlock
authorcharles <charles>
Mon, 26 Jan 2009 23:27:15 +0000 (23:27 +0000)
committercharles <charles>
Mon, 26 Jan 2009 23:27:15 +0000 (23:27 +0000)
yportenv.h

index bfda36e..c3fa36c 100644 (file)
@@ -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)