Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3478986ybv; Tue, 25 Feb 2020 02:04:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyAy5x1SRluMl7X7T3rUctzUQofNs1kFuntSrSLJp7nSWGRo2VICC22HZYQdHrGxqeNnhGR X-Received: by 2002:a05:6808:8d0:: with SMTP id k16mr2815651oij.68.1582625053582; Tue, 25 Feb 2020 02:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582625053; cv=none; d=google.com; s=arc-20160816; b=bcMk84WLjRm4Lm7T3Ro2Ai6hPibJtpzHP7mVf8T6rD4DtwrQjUNrxaD7gVn94+u2wH 3bfqezWa/kA0C3/LofvrajWbphc1put/01Ni3Irepzg4F3S4DRdoJrfuW+Q5rv+WhHXk Df/6LW47wY0A+ObiTRdo97yiEm03hx8b1QVtwD7yOSR0vCp8ReXFf3jzCxb2bGlTUR/d DCoRV+TWFWE4cZfXQpwjZ0Fi1DR07+rxBDkYf0xqGeuiT9UgsujSRzyleVBihhRwHJ9O TRfd4b0GQjqqVkOcFFVW543eTbSleqzxKmllMgk/P9CeE1v9LDa/x7A1QJ3yHXn4nr8x 9iCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lnOg0BFJC0Xq2X5KIoU2QBkyMNBMepmyg8YCqkA6k7U=; b=Cbm1U4iC9Vc7R5Im9nu7kBxjyqOpDDChLyHkCSSahGXy72/ZNAdjpJLFpJvWJGeTeI PosYtcdpme+9WQyENFCDFNduJ1VmbqW1nIPoDbhHRNxMjLzwUFwn8Syn0pKcGFdyKG38 4kVxX8MnAUxQ837TUfOOpyosXgwCnt7dHVCGPdD2x/oJRqaosMOYftmgj5/2c0GyzZuk nmY3uoSWY9NJnFuwHgcnbzwpfuUJDYF+IeekhS24PaGszcuk1YjcLKwAjkCJLOzdYrD5 yhtbmKKe/e1CLJdgpxAb02/n0HtB/rKrm+X+3f9WxSvnOBYZYLogwoojTyxlhtgiOV9j Ot8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h138si6471594oib.6.2020.02.25.02.03.55; Tue, 25 Feb 2020 02:04:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729824AbgBYKCa (ORCPT + 99 others); Tue, 25 Feb 2020 05:02:30 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51944 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727016AbgBYKC3 (ORCPT ); Tue, 25 Feb 2020 05:02:29 -0500 Received: by mail-wm1-f67.google.com with SMTP id t23so2330624wmi.1 for ; Tue, 25 Feb 2020 02:02:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lnOg0BFJC0Xq2X5KIoU2QBkyMNBMepmyg8YCqkA6k7U=; b=W5pkAJ7vs+/eKUiyjkKoAdyaEr6gD+WDTwNHpqLhMbMG24m5oWZknwhCKJeRVzD6aQ XDbwYe3WQxHFS6SvwJYwsZxvjDyEfDpAzb5Yq80FmYrBqG80MncXLUH+Cjw2CBHmZ7rr WbjZY0/SSLqp/W1IW5MyDjQJUv0z6q4Z6h1+vne8dFmKabEUampqJvBm9V47r7OUEfIL vYGem9IGfyxigxShdBffLqOg8fsR7ImcX1wMhluRCMEREpivWH9oo0PnPM8kksmhjQDA IaMHk2F6gMUSUYqx60n7M70CroNivXMRmAcoLOTLd0mht9G0GckD8nB5FlRRnza4iC3C 5f6A== X-Gm-Message-State: APjAAAUyOwvIhwxmtA5P2nZttksbCAHlEV6KOuZZ7wDxQsqeD70x005q Z36O58vt611l9aXYwYJnkNM= X-Received: by 2002:a7b:c08d:: with SMTP id r13mr4418391wmh.84.1582624947879; Tue, 25 Feb 2020 02:02:27 -0800 (PST) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id a13sm5808318wrt.55.2020.02.25.02.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 02:02:26 -0800 (PST) Date: Tue, 25 Feb 2020 11:02:26 +0100 From: Michal Hocko To: David Hildenbrand Cc: Baoquan He , linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, richardw.yang@linux.intel.com, osalvador@suse.de, dan.j.williams@intel.com, rppt@linux.ibm.com, robin.murphy@arm.com Subject: Re: [PATCH v2 0/7] mm/hotplug: Only use subsection map in VMEMMAP case Message-ID: <20200225100226.GM22443@dhcp22.suse.cz> References: <20200220043316.19668-1-bhe@redhat.com> <20200220103849.GG20509@dhcp22.suse.cz> <20200221142847.GG4937@MiWiFi-R3L-srv> <75b4f840-7454-d6d0-5453-f0a045c852fa@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75b4f840-7454-d6d0-5453-f0a045c852fa@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 25-02-20 10:10:45, David Hildenbrand wrote: > >>> include/linux/mmzone.h | 2 + > >>> mm/sparse.c | 178 +++++++++++++++++++++++++++++------------ > >>> 2 files changed, 127 insertions(+), 53 deletions(-) > >> > >> Why do we need to add so much code to remove a functionality from one > >> memory model? > > > > Hmm, Dan also asked this before. > > > > The adding mainly happens in patch 2, 3, 4, including the two newly > > added function defitions, the code comments above them, and those added > > dummy functions for !VMEMMAP. > > AFAIKS, it's mostly a bunch of newly added comments on top of functions. > E.g., the comment for fill_subsection_map() alone spans 12 LOC in total. > I do wonder if we have to be that verbose. We are barely that verbose on > MM code (and usually I don't see much benefit unless it's a function > with many users from many different places). I would tend to agree here. Not that I am against kernel doc documentation but these are internal functions and the comment doesn't really give any better insight IMHO. I would be much more inclined if this was the general pattern in the respective file but it just stands out. -- Michal Hocko SUSE Labs