]> granicus.if.org Git - spl/commitdiff
Decrease of kmem warnign threshold back to 2 pages, no worse than a stack.
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 7 May 2008 19:33:01 +0000 (19:33 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 7 May 2008 19:33:01 +0000 (19:33 +0000)
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@100 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

include/sys/kmem.h

index 98470e86782ab1efd6e30f0f002ae133490219c0..d67e4f2a2711a5c4a29dd4118f7256be47d82e45 100644 (file)
@@ -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),             \