Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5038749rwb; Tue, 6 Sep 2022 17:34:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7f9oL26bfftXkNMpkl3ROsEkzG//frYwdZvvnfrBJGCpKRcbVwCfJ0mwrmprkedyLo+8Ty X-Received: by 2002:a05:6402:3596:b0:447:11ea:362d with SMTP id y22-20020a056402359600b0044711ea362dmr939257edc.117.1662510858418; Tue, 06 Sep 2022 17:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662510858; cv=none; d=google.com; s=arc-20160816; b=mpl0gGBBxR9bf6XWXFqz1TISTgKOklv8yUS0vAbUh1nV5GJF8YDepsiiLjYRw/zOqg jAsuMf1hMB+SNJDnsbrkKI2a/kKZ9Q7IXufn0Pz5l23WZ7XVBgrKeVh14P4cy4Tf3KFs TNcJ8iUZ2XNHOaCdibGjOjacmwgMcn9RZ1EruwDZa9IrWDd+Ru1/XHNYNOXby7wOdARK VMryNodRXoYyKUiYLuVt3DV9QO3fe4eb2/2h87CKvPBnaYktdVf+hQx6FlRAtrMy0I+4 sXYtk5NC/ysRenLQoHWDZhn/D64pEnGogujyYB4d8QgKlgS+RPV6znCOzFm/WcGHalkr stSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=PZL/5RMRzb3okr8mZOQwG8hMK3JOdWh8OAV1VQutz6s=; b=grgPRmTPEY3aziAJnlmfo9Dgojc/VPMzZX1tLX3aFQio5Dz42Fy4XEdepkcS8dSMTf GchXsgTz3ixKJbyc3EyNLiLO+CyVp/bzY9kHjN8RYn0Hv9YMDuZvJFF89qgGqFE4IJT7 +ia3ikYqdJiH/mS48aLwqTW9Kj8XQ5OWDUno32XZLIbw+qYP6w5Uwr0C6p1gBz/1xrYc 9VuZi1RO2UMy8tgwTCXTMbHRwXgwYSex6/05spFszK3mZUpp4Er7nr/1EOwbEgT/75Tm jIUnj25HH8QbdcDCirvlB18ouM6HPnk7mvXMwNK/bxyd7CQIPQZMeQmy946fSZF+iBB/ Ur2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=1bemAhIh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du12-20020a17090772cc00b0073dcb7e19b6si11345375ejc.840.2022.09.06.17.33.45; Tue, 06 Sep 2022 17:34:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=1bemAhIh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbiIGAKx (ORCPT + 99 others); Tue, 6 Sep 2022 20:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiIGAKv (ORCPT ); Tue, 6 Sep 2022 20:10:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF6966117 for ; Tue, 6 Sep 2022 17:10:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 056E361721 for ; Wed, 7 Sep 2022 00:10:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A3F9C433D6; Wed, 7 Sep 2022 00:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1662509449; bh=EHSJp+ae8REEPQ3Px3yhok9m5oIog6h9LNiUxvHSGd0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=1bemAhIhg3JdZaj5tYJq15ketgTqOMnWrsxVHkWnnjJMB/1LFjjdBsf/wgehvekGb gPfZtnhOCqYp2EgYXr7JvbsXTFKrVopvV/XHWdoRZ6PPje+xgkqxxal0uQTv7ULj99 0tptLnKljV+dI7l/zLpeWN4qGosqmKctp9QqxD9w= Date: Tue, 6 Sep 2022 17:10:48 -0700 From: Andrew Morton To: Mike Kravetz Cc: Cheng Li , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm: use mem_map_offset instead of mem_map_next Message-Id: <20220906171048.1cd24a27b71ded17f89ddb00@linux-foundation.org> In-Reply-To: References: <1662358159-22780-1-git-send-email-lic121@chinatelecom.cn> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Sep 2022 10:07:03 -0700 Mike Kravetz wrote: > On 09/05/22 06:09, Cheng Li wrote: > > To handle discontiguity case, mem_map_next() has a parameter named > > `offset`. As a function caller, one would be confused why "get > > next entry" needs a parameter named "offset". The other drawback of > > mem_map_next() is that the callers must take care of the map between > > parameter "iter" and "offset", otherwise we may get an hole or > > duplication during iteration. So we use mem_map_offset instead of > > mem_map_next. > > > > Signed-off-by: Cheng Li > > Fixes: 69d177c2fc70 ("hugetlbfs: handle pages higher order than MAX_ORDER") > > The Fixes tag implies there is a user visible bug. I do not believe this is > the case here. Is there a user visible bug? A Fixes: with a cc:stable would indicate a user-visible bug. But IMO a bare Fixes: is simply a when-to-stop guide to backporters - a convenience. And, I suppose, it has some documentation benefit. And if people are really that interested, they can read the dang changelog ;)