Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12413062rwl; Tue, 3 Jan 2023 14:06:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXstONEiUea+egMhU2IDq7L7BLnl2yPx/eywAqyjaJYWmwbP9donM0BNEgB7TdtAfGvOEs3I X-Received: by 2002:a17:90a:4583:b0:219:6619:848a with SMTP id v3-20020a17090a458300b002196619848amr50269604pjg.36.1672783584336; Tue, 03 Jan 2023 14:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672783584; cv=none; d=google.com; s=arc-20160816; b=A2HTC7jvyj3zg5ijvb05d77JPY/bGbspG/L+hjC0IciOGOkneb7iNNI4/+VmpbUrOJ 3SW4KsQawQd9Mr/SvKpta2a5NVzqDrQATRwVMXjdLzoCWBKwkjHqHQpbGLql2H5k+LAz wBN8CY6ZMp6Efg2Xg0BpXwolBR5zeQvUVTOafsv33RVNwohSaSiVpkZG6ddcZmfM3QeQ ee1iPRLvCynGLJwyP+YxnUGrDAHJeMqYiZ3kwVVH6vUwYWweU9CKbDLR5lFgWpZWb8oU 7V0ViwLdXlff7YKefZ7npN3x+OVyl/aOyZTXpD/hpfIM1+5O+9wzeCnzZZW435ZlUy3K lIBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UE4pFETTCLCzR95QKSBJ3qT45YjNJI4csCeU5tD4KaQ=; b=nd5P20kc3J3OP+DcAXcAFrvM7OQa0DoG4Ix3BFDvlQG5/kgEIHYjk3PLoxsUk4yE7T TtIAmuiDVKDcKoSvB3hjUPiUgL/FzU4haI6OLnNtII760F0XxrQqqe08yMF9/yVjttYr f4ki2aM+UIX7BrI/EKr0a5f+OGDvVKCapP+l8sTODHnEdeaPypHeJprzGYfNNOFlwiv7 iX/XH26xARgc4C8F32Ilg2OuZkYquHPhB37k1Au1riCqX/dCJjBrepMBAjDuxTZsfbYm TpbmAzx9LLeR4s5+36SZf75mmR3knZRl10vqPx/ioLx8VJbT4mNHzwMWTUM42sGtMvoE sWHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=u6TSBbld; 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 hk7-20020a17090b224700b00225aff126desi38022772pjb.109.2023.01.03.14.06.17; Tue, 03 Jan 2023 14:06:24 -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=@infradead.org header.s=casper.20170209 header.b=u6TSBbld; 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 S234125AbjACU4t (ORCPT + 59 others); Tue, 3 Jan 2023 15:56:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234078AbjACU4r (ORCPT ); Tue, 3 Jan 2023 15:56:47 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8844CEE32 for ; Tue, 3 Jan 2023 12:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UE4pFETTCLCzR95QKSBJ3qT45YjNJI4csCeU5tD4KaQ=; b=u6TSBbldGd41Xz/Vk18GdgWB9c KaVf8X0givCS+fAja7O6AhPir7fXdlqrFxnNpRACQZVT1ffR4SKowzRat7d6LuIXJjxfaJlX5ZlqD U33fcLY0HCslISlwcSrRx3brql1Ul1r0Pj/yO85oovODlE8nw52Xz9TCZkBbJLDutWWX22Dbm4PO7 0fteLjWEHVZepqyxrzhDXevgpu5LCTarJkqKM7LkQdaYNx896BHVZsnA8z4h0Idqq+uxBy8VurDvW n3Zz/ks0sspuqzNMHb4YizowAHvnqeJNoRfN90s928uN4TzSRkHJ3tazHojmFSmeZDAsc0bSh/Qwv UpcQ8UFw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCoL5-00EP9P-Vf; Tue, 03 Jan 2023 20:56:52 +0000 Date: Tue, 3 Jan 2023 20:56:51 +0000 From: Matthew Wilcox To: Sidhartha Kumar Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, tsahu@linux.ibm.com, jhubbard@nvidia.com Subject: Re: [PATCH mm-unstable 1/8] mm/hugetlb: convert isolate_hugetlb to folios Message-ID: References: <20230103191340.116536-1-sidhartha.kumar@oracle.com> <20230103191340.116536-2-sidhartha.kumar@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103191340.116536-2-sidhartha.kumar@oracle.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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, Jan 03, 2023 at 01:13:33PM -0600, Sidhartha Kumar wrote: > +++ b/include/linux/mm.h > @@ -775,6 +775,11 @@ static inline bool get_page_unless_zero(struct page *page) > return page_ref_add_unless(page, 1, 0); > } > > +static inline bool get_folio_unless_zero(struct folio *folio) > +{ > + return folio_ref_add_unless(folio, 1, 0); > +} > + I think that's folio_try_get() in linux/page_ref.h. The rest looks good though.