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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4508FC4332F for ; Thu, 15 Dec 2022 05:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbiLOFcn (ORCPT ); Thu, 15 Dec 2022 00:32:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiLOFcP (ORCPT ); Thu, 15 Dec 2022 00:32:15 -0500 Received: from out-141.mta0.migadu.com (out-141.mta0.migadu.com [IPv6:2001:41d0:1004:224b::8d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3811B2A958 for ; Wed, 14 Dec 2022 21:32:02 -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=1671082320; 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=AjbPhz8ewubibdERpfEGMrVXZxEqEE0Jc+V7K14QaLQ=; b=WBWxdfAX4rclU2dt3iRBCB04Buz5Q3psnYuCHy9Wr0GRiqnGG+Nj+sykniihuaqJkyFGnA D7RuAFud+IEha1codAQd42KZwav+bcPpmpIGJYCJg7BoplcEmc0ytrNX18Bfoy4AyKCGeg 9Nzqvwsr38ZIog/H1nC+jf6OLotzq+I= 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: Date: Thu, 15 Dec 2022 13:31:24 +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: References: <20221213212053.106058-1-sidhartha.kumar@oracle.com> <0B650D64-1F64-4695-9365-CF695029C50C@linux.dev> To: Sidhartha Kumar X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 15, 2022, at 13:09, Sidhartha Kumar = wrote: >=20 > On 12/14/22 7:44 PM, Muchun Song wrote: >>> 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 > Hi Muchun, >=20 > Does this review include the change from Yes. Thanks. >=20 > + if (!folio_test_large(folio)) { > + WARN_ON_ONCE(order); > + return; > + } >=20 > to >=20 > if (WARN_ON_ONCE(!folio_test_large(folio))) > return; >=20 > discussed in in this thread? >=20 > Thanks, > Sidhartha Kumar >> Thanks.