Double large kmalloc warning size to 4 pages. It was 2 pages, and ideally

it should be dropped to one page but in the short term we should be able
to easily live with 4 page allocations.

Fix the nvlist bug, it turns out the user space side of things were
packing the nvlists correctly as little endian, and the kernel space
side of things due to a missing #define were unpacking them as big endian.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@62 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo
2008-04-01 16:09:18 +00:00
parent e966e04fd5
commit 6a585c61de
2 changed files with 65 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ extern int kmem_warning_flag;
({ void *_ptr_; \
\
/* Marked unlikely because we should never be doing this */ \
if (unlikely((size) > (PAGE_SIZE * 2)) && kmem_warning_flag) \
if (unlikely((size) > (PAGE_SIZE * 4)) && kmem_warning_flag) \
printk("spl: Warning kmem_alloc(%d, 0x%x) large alloc at %s:%d "\
"(%ld/%ld)\n", (int)(size), (int)(flags), \
__FILE__, __LINE__, \