Thread (14 messages) 14 messages, 2 authors, 2012-11-03

Re: [RFC PATCH 5/6] mm: use vm_unmapped_area() on x86_64 architecture

From: Rik van Riel <hidden>
Date: 2012-11-02 20:39:13

On 10/31/2012 06:33 AM, Michel Lespinasse wrote:
Signed-off-by: Michel Lespinasse <redacted>
The patch could use a changelog.
+	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
+	info.length = len;
+	info.low_limit = 0;  // XXX could be PAGE_SIZE ???
Indeed.

Everything else in the patch looks good to me.
+	info.high_limit = mm->mmap_base;
+	info.align_mask = filp ? get_align_mask() : 0;
+	info.align_offset = 0;
+	addr = vm_unmapped_area(&info);
+	if (!(addr & ~PAGE_MASK))
+		return addr;
+	VM_BUG_ON(addr != -ENOMEM);


-- 
All rights reversed

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help