aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-05-07 19:33:01 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-05-07 19:33:01 +0000
commit427a782d7dde286857044515efa99d465ccf2516 (patch)
tree6b8dadadd5b5ca50729889a6ce67fea9c47ee92c /include
parent13cdca65ec6882df57ec06f8f9be14b2b3668a5d (diff)
Decrease of kmem warnign threshold back to 2 pages, no worse than a stack.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@100 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include')
-rw-r--r--include/sys/kmem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sys/kmem.h b/include/sys/kmem.h
index 98470e867..d67e4f2a2 100644
--- a/include/sys/kmem.h
+++ b/include/sys/kmem.h
@@ -91,8 +91,9 @@ __kmem_del_init(spinlock_t *lock,struct hlist_head *table,int bits,void *addr)
"kmem_alloc(%d, 0x%x) debug failed\n", \
sizeof(kmem_debug_t), (int)(flags)); \
} else { \
- /* Marked unlikely because we should never be doing this */ \
- if (unlikely((size) > (PAGE_SIZE * 4)) && kmem_warning_flag) \
+ /* Marked unlikely because we should never be doing this, */ \
+ /* we tolerate to up 2 pages but a single page is best. */ \
+ if (unlikely((size) > (PAGE_SIZE * 2)) && kmem_warning_flag) \
__CDEBUG_LIMIT(S_KMEM, D_WARNING, "Warning large " \
"kmem_alloc(%d, 0x%x) (%ld/%ld)\n", \
(int)(size), (int)(flags), \