Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp431723rwb; Wed, 14 Dec 2022 20:03:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/JbcOPw6aUnzfKr2hlpwo0BCoCSoYwCX2NqBKI1j+eTdYc78dvfub73h5+3+QXQCZpgDi X-Received: by 2002:a05:6402:2947:b0:461:f4f9:eb3f with SMTP id ed7-20020a056402294700b00461f4f9eb3fmr21728972edb.19.1671077001660; Wed, 14 Dec 2022 20:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671077001; cv=none; d=google.com; s=arc-20160816; b=kEHyNEBd+oSIQDTIe0P3oVWWqJaRBlYYEpd0+PvF1LUgxwVvC4QnhS/mpI5BMW3mZl osKPuxY6I9PbOMeWIO/vqz1dVgD6FeI/E75Hiqol546iSdinTGCI/P3xuR/6DS2V8HwR 2CsPOcc2/QN/KCicWlsO7YHY1TaP+0ZnxWdWJvQgBt1tRE4NY/rcwGjfPyUu2/XrRC1Q E2VzzCoQR/UTgU7d5zy+bub1zIsCZum0RQFF9RsGBh/7oR5CsrvmZYJT5cenMvfRNObq /6njT7JoT+O3s3onnlN3redM3poJimQB3cXsxtfPKtSTXr0mzp9/Lg+614ZDBG82CjeU fN5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Ek1AWVDvL3uGjwPmVZLLu6V363bRYpZOhP1Lu8fyRnA=; b=yCZFhpswd0wzwODYbr5/5Zj5cVtyrZnQScEr3wre6P/WuTnU5hIIxDDGi7Gs+laZT0 NcFJsPv0nmfd9Nbxkb1CDhEMIh7ywaWIVLLBjquYGKB58MzPVEFN4PJETYpnF4A2/bdJ sTJQr5DtfQGneLYivZs84p9ZOuMqvkvWk7eJBY0j3flYawkyMjAswjHFkseXzALczqV+ wxmguKM1/G9JPm4Vk42PCn427U0RwJLJDpy5+yFImul1UBeyjTDHRdZE4IkRGOi5rOei Jo24QE05YuParXlyAo4th505yigN4Uw36m44ZCfubXockZrLhXIz23thdK8W7Re7xi3D I/Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=e4jSCMHB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo27-20020a0564020b3b00b004677a9c4b39si10166252edb.91.2022.12.14.20.03.04; Wed, 14 Dec 2022 20:03:21 -0800 (PST) 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.dev header.s=key1 header.b=e4jSCMHB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbiLODoz (ORCPT + 70 others); Wed, 14 Dec 2022 22:44:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiLODow (ORCPT ); Wed, 14 Dec 2022 22:44:52 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AD2A5289C for ; Wed, 14 Dec 2022 19:44:50 -0800 (PST) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1671075888; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ek1AWVDvL3uGjwPmVZLLu6V363bRYpZOhP1Lu8fyRnA=; b=e4jSCMHBjLLS8F5I0zKPVXVejFpN80ydgHO0I78K+igtJzI85DkC/p6bhJPqPeBhgDFmVh tuLiW6iAmFq0IHHAiSV+4XJEvIrk3CxTyb3bVpWoBg3M5kIUpIzYg40NqbZZQWWa9M7zGw BnmA67tsVkOOEsnRrSvbPnxMG1wqgf8= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: [PATCH mm-unstable] mm: move folio_set_compound_order() to mm/internal.h X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20221213212053.106058-1-sidhartha.kumar@oracle.com> Date: Thu, 15 Dec 2022 11:44:14 +0800 Cc: linux-kernel@vger.kernel.org, Linux Memory Management List , Andrew Morton , Muchun Song , Mike Kravetz , Matthew Wilcox , John Hubbard Content-Transfer-Encoding: quoted-printable Message-Id: <0B650D64-1F64-4695-9365-CF695029C50C@linux.dev> References: <20221213212053.106058-1-sidhartha.kumar@oracle.com> To: Sidhartha Kumar X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS 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 Dec 14, 2022, at 05:20, Sidhartha Kumar = wrote: >=20 > folio_set_compound_order() is moved to an mm-internal location so = external > folio users cannot misuse this function. Change the name of the = function > to folio_set_order() and use WARN_ON_ONCE() rather than BUG_ON. Also, > handle the case if a non-large folio is passed and add clarifying = comments > to the function. >=20 > Link: = https://lore.kernel.org/lkml/20221207223731.32784-1-sidhartha.kumar@oracle= .com/T/ > Fixes: 9fd330582b2f ("mm: add folio dtor and order setter functions") >=20 > Signed-off-by: Sidhartha Kumar > Suggested-by: Mike Kravetz > Suggested-by: Muchun Song > Suggested-by: Matthew Wilcox > Suggested-by: John Hubbard Reviewed-by: Muchun Song Thanks.=