From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32CD5C43635 for ; Thu, 6 Aug 2020 11:05:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AA13E22E00 for ; Thu, 6 Aug 2020 11:05:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA13E22E00 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CA0E36B0023; Thu, 6 Aug 2020 05:59:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C51216B0024; Thu, 6 Aug 2020 05:59:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B47CE6B0025; Thu, 6 Aug 2020 05:59:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0241.hostedemail.com [216.40.44.241]) by kanga.kvack.org (Postfix) with ESMTP id 9AE546B0023 for ; Thu, 6 Aug 2020 05:59:25 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 1AA7D180AD807 for ; Thu, 6 Aug 2020 09:59:25 +0000 (UTC) X-FDA: 77119696290.04.body26_1416e6c26fb6 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id E477B80108A4 for ; Thu, 6 Aug 2020 09:59:24 +0000 (UTC) X-HE-Tag: body26_1416e6c26fb6 X-Filterd-Recvd-Size: 2693 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Thu, 6 Aug 2020 09:59:20 +0000 (UTC) X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04397;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0U4udH-7_1596707952; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U4udH-7_1596707952) by smtp.aliyun-inc.com(127.0.0.1); Thu, 06 Aug 2020 17:59:12 +0800 Date: Thu, 6 Aug 2020 17:59:12 +0800 From: Wei Yang To: David Hildenbrand Cc: Wei Yang , Wei Yang , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [Patch v2] mm/sparse: only sub-section aligned range would be populated Message-ID: <20200806095912.GA97074@L-31X9LVDL-1304.local> Reply-To: Wei Yang References: <20200703031828.14645-1-richard.weiyang@linux.alibaba.com> <20200805214955.ds7y3nwjoz2ms37h@master> <1c817ced-8ad9-ce91-2992-94092bc065b3@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c817ced-8ad9-ce91-2992-94092bc065b3@redhat.com> X-Rspamd-Queue-Id: E477B80108A4 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000096, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Aug 06, 2020 at 09:29:36AM +0200, David Hildenbrand wrote: >On 05.08.20 23:49, Wei Yang wrote: >> On Fri, Jul 03, 2020 at 11:18:28AM +0800, Wei Yang wrote: >>> There are two code path which invoke __populate_section_memmap() >>> >>> * sparse_init_nid() >>> * sparse_add_section() >>> >>> For both case, we are sure the memory range is sub-section aligned. >>> >>> * we pass PAGES_PER_SECTION to sparse_init_nid() >>> * we check range by check_pfn_span() before calling >>> sparse_add_section() >>> >>> Also, the counterpart of __populate_section_memmap(), we don't do such >>> calculation and check since the range is checked by check_pfn_span() in >>> __remove_pages(). >>> >>> Clear the calculation and check to keep it simple and comply with its >>> counterpart. >>> >>> Signed-off-by: Wei Yang >>> >> >> Hi, Andrew, >> >> Is this one picked up? > >I can spot it in -next via the -mm tree: > >https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=68ad9becb23be14622e39ed36e5b0621a90a41d9 > Thanks ;-) Next time I would refer to this repo first. > >-- >Thanks, > >David / dhildenb -- Wei Yang Help you, Help me