From: Andrea Arcangeli Date: Tue, 1 Nov 2011 00:08:22 +0000 (-0700) Subject: mremap: check for overflow using deltas X-Git-Tag: v3.2-rc1~108^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebed48460be5abd86d9a24fa7c66378e58109f30;p=pandora-kernel.git mremap: check for overflow using deltas Using "- 1" relies on the old_end to be page aligned and PAGE_SIZE > 1, those are reasonable requirements but the check remains obscure and it looks more like an off by one error than an overflow check. This I feel will improve readability. Signed-off-by: Andrea Arcangeli Acked-by: Johannes Weiner Acked-by: Mel Gorman Acked-by: Rik van Riel Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed