Messages in this thread | | | Date | Tue, 30 Jun 2015 15:45:48 -0700 (PDT) | From | David Rientjes <> | Subject | Re: [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.
| |