brick_mem: show BRICK_DEBUG_MEM to other modules

This commit is contained in:
Thomas Schoebel-Theuer 2012-12-31 19:33:32 +01:00
parent 6579498a4b
commit 8601114229
2 changed files with 6 additions and 5 deletions

View File

@ -13,14 +13,9 @@
#include "brick_say.h"
#include "brick_locks.h"
#define BRICK_DEBUG_MEM 10000
#define USE_KERNEL_PAGES // currently mandatory (vmalloc does not work)
#define ALLOW_DYNAMIC_RAISE 4096
#ifndef CONFIG_MARS_DEBUG
#undef BRICK_DEBUG_MEM
#endif
#define MAGIC_BLOCK (int)0x8B395D7B
#define MAGIC_BEND (int)0x8B395D7C
#define MAGIC_MEM1 (int)0x8B395D7D

View File

@ -4,6 +4,12 @@
#include <linux/mm_types.h>
#define BRICK_DEBUG_MEM 4096
#ifndef CONFIG_MARS_DEBUG
#undef BRICK_DEBUG_MEM
#endif
#define GFP_BRICK GFP_NOIO
//#define GFP_BRICK GFP_KERNEL // can lead to deadlocks!