Thread (31 messages) 31 messages, 4 authors, 2012-03-14

Re: [PATCH -V3 3/8] hugetlb: add charge/uncharge calls for HugeTLB alloc/free

From: Aneesh Kumar K.V <hidden>
Date: 2012-03-14 10:47:45
Also in: linux-mm, lkml

On Tue, 13 Mar 2012 14:36:54 -0700, Andrew Morton [off-list ref] wrote:
On Tue, 13 Mar 2012 12:37:07 +0530
"Aneesh Kumar K.V" [off-list ref] wrote:
quoted
+		return ERR_PTR(-VM_FAULT_SIGBUS);
whee, so we have (ab)used the err.h infrastructure to carry
VM_FAULT_foo codes, thus creating a secret requirement that the
VM_FAULT_foo values not exceed MAX_ERRNO.

What a hack, whodidthat?
e0dcd8a05be438b3d2e49ef61441ea3a463663f8. We only do that in hugetlb. I
will add a cleanup patch that will return proper error and map them in
the caller to return SIGBUS.

-aneesh 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help