lkml.org 
[lkml]   [2015]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] mremap: simplify the "overlap" check in mremap_to()
On Sat, 20 Jun 2015, Oleg Nesterov wrote:

> Minor, but this check is overcomplicated. Two half-intervals do NOT
> overlap if END1 <= START2 || END2 <= START1, mremap_to() just needs
> to negate this check.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Acked-by: David Rientjes <rientjes@google.com>

If you rebase this patchset, it would be good to fixup the comment style
while you're there.


\
 
 \ /
  Last update: 2015-07-01 01:01    [W:0.102 / U:1.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site