On 10/31/2012 06:33 AM, Michel Lespinasse wrote:
Signed-off-by: Michel Lespinasse <walken@xxxxxxxxxx>
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@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>