From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by kanga.kvack.org (Postfix) with ESMTP id 995116B0035 for ; Tue, 10 Dec 2013 20:45:53 -0500 (EST) Received: by mail-wg0-f47.google.com with SMTP id n12so5674962wgh.2 for ; Tue, 10 Dec 2013 17:45:53 -0800 (PST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com. [119.145.14.65]) by mx.google.com with ESMTPS id bj10si7768987wjb.141.2013.12.10.17.45.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 17:45:52 -0800 (PST) Message-ID: <52A7C2F8.4090207@huawei.com> Date: Wed, 11 Dec 2013 09:42:16 +0800 From: Xishi Qiu MIME-Version: 1.0 Subject: Re: [PATCH] mm,x86: fix span coverage in e820_all_mapped() References: <52A6D9B0.7040506@huawei.com> <52A787D0.2070400@zytor.com> <52A79B0D.4090303@zytor.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "H. Peter Anvin" Cc: Yinghai Lu , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Linn Crosetto , Pekka Enberg , LKML , Andrew Morton , Linux MM On 2013/12/11 9:06, H. Peter Anvin wrote: > Ok, the issue I thought we were discussing was actually [A,B) [B,C) [C,D) ... > Hi Peter, Yes, in this case the function will return 1. Thanks, Xishi Qiu > Yinghai Lu wrote: >> On Tue, Dec 10, 2013 at 2:51 PM, H. Peter Anvin wrote: >>> On 12/10/2013 01:52 PM, Yinghai Lu wrote: >>>>> >>>>> What happens if it spans more than two regions? >>>> >>>> [A, B), [B+1, C), [C+1, D) ? >>>> start in [A, B), and end in [C+1, D). >>>> >>>> old code: >>>> first with [A, B), start set to B. >>>> then with [B+1, C), start still keep as B. >>>> then with [C+1, D), start still keep as B. >>>> at last still return 0...aka not_all_mapped. >>>> >>>> old code is still right. >>>> >>> >>> Why not_all_mapped? >> >> [B, B+1), and [C, C+1) are not there. > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org