From: Oleg Nesterov Date: Fri, 4 Sep 2015 22:48:13 +0000 (-0700) Subject: mremap: simplify the "overlap" check in mremap_to() X-Git-Tag: omap-for-v4.3/fixes-rc1~87^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9943242ca468149c4ce30d4633524c0866d4a87b;p=pandora-kernel.git mremap: simplify the "overlap" check in mremap_to() 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 Acked-by: David Rientjes Cc: Benjamin LaHaise Cc: Hugh Dickins Cc: Jeff Moyer Cc: Kirill A. Shutemov Cc: Laurent Dufour Cc: Pavel Emelyanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed