[Libhugetlbfs-devel] [RFC][PATCH v2] morecore: handle negative increments

2006-09-06 Thread Nishanth Aravamudan
On 06.09.2006 [14:34:53 -0700], Nishanth Aravamudan wrote: > On 06.09.2006 [12:07:15 -0700], Nishanth Aravamudan wrote: > > We currently skip over negative increments, but in a potentially > > incorrect manner, as we still move our heap around. If both newsize and > > increment are negative, then w

Re: [Libhugetlbfs-devel] [RFC][PATCH] morecore: handle negative increments

2006-09-06 Thread Nishanth Aravamudan
On 06.09.2006 [12:07:15 -0700], Nishanth Aravamudan wrote: > We currently skip over negative increments, but in a potentially > incorrect manner, as we still move our heap around. If both newsize and > increment are negative, then we check to see if we can free up at least > a full hugepage. We the

[Libhugetlbfs-devel] [PATCH] Respect env vars in run_tests.sh

2006-09-06 Thread Steve Fox
tests: Respect existing PATH and LD_LIBRARY_PATH variables so that run_tests.sh will run when installed in an unusual location. Signed-off-by: Steve Fox <[EMAIL PROTECTED]> diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 9b8af36..be648ff 100755 --- a/tests/run_tests.sh +++ b/tests/run

[Libhugetlbfs-devel] [RFC][PATCH] morecore: handle negative increments

2006-09-06 Thread Nishanth Aravamudan
We currently skip over negative increments, but in a potentially incorrect manner, as we still move our heap around. If both newsize and increment are negative, then we check to see if we can free up at least a full hugepage. We then unmap appropriately and move the top of the heap around. Signed-

[Libhugetlbfs-devel] [PATCH] morecore: add comments

2006-09-06 Thread Nishanth Aravamudan
I found the dearth of comments in morecore.c to be quite troublesome while debugging a related kernel bug. I hope these are accurate. Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]> diff -urpN a/morecore.c b/morecore.c --- a/morecore.c2006-09-06 11:34:18.0 -0700 +++ b/morec