Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1619455rwb; Thu, 8 Dec 2022 13:03:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Uue82lh+7WPf7mFgi09/AJ8DDHc4gBPYa1+em2nciSIu3ujzs5fMKXvUrx5AXGY3meLjm X-Received: by 2002:a17:906:82cd:b0:7c0:dfb7:62dc with SMTP id a13-20020a17090682cd00b007c0dfb762dcmr16236300ejy.139.1670533403075; Thu, 08 Dec 2022 13:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670533403; cv=none; d=google.com; s=arc-20160816; b=xT2o5D1RdlK+5P6PqOK3FkxgdxVSk5kQnu8FSmTWm+Sx2IpU+l8Sa6/oJiF0nN+lTf hnTn3UUr99lKDevfSE9veV9do5f8d7ujk4Ans+ddG06t07P18/4AVxuCtQyzRFQocCs8 FzHGGH6u66z7fB7yREMgzcVBRihfwd3200mdc2vvw8I4bh7RJNwj/E7mhtZvIa6MwPRL pAavEvqs+1YE5grvMQMn+XlneBnKQ2uRzKwLf7GzsuI1U/SVEXRQCukvJEr6Gdg/ARJz d85KdxS0YcJNgR2A1Q4kOEW5o6nY8JN4PrIjnWD7/YNNYeNFsP1AbmtpVLSlVuicny/C gXPg== 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=gusrjqGtF3EWWrH8XS3Cy8AToTM2/ZhBBd0S8TkvBrw=; b=AkUgIxEr1RKPBAYv2LlEP0jW8J86pMqP+NINJxRksxg7zxDAyaxOeTBGj62IDcb7pV 3TukTip6uFn/ffcU/anYOHZ9qMPxUAjLyfBMvKq1JsPnHOPbpwM+IBLeH9s9zvD/CxaA t+bLgr9oOYHvYMZhgofKq7QSY4RUv2UTRg1axloa6S7GJPyaHTbLwYeUywyzrPOgvnE7 uN0C1Y2gVoIrsr4uB6MrYf12D7Be95Rt1qQaccq1QQ7Q9ItCZ82tTCMKlhJmMMyiZ+Cu Gl9ABDzPcL1Sr6IJc31WDDhSX0MklWOf5ub1Id42G/4/kc+9j5zR3u6aWWYUShPj3aJm j+EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eRAq1WAd; 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 di5-20020a170906730500b00770872942d8si21798643ejc.958.2022.12.08.13.03.05; Thu, 08 Dec 2022 13:03:23 -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=eRAq1WAd; 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 S229692AbiLHU5G (ORCPT + 73 others); Thu, 8 Dec 2022 15:57:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiLHU44 (ORCPT ); Thu, 8 Dec 2022 15:56:56 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02B7F8F0B1 for ; Thu, 8 Dec 2022 12:56:53 -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=gusrjqGtF3EWWrH8XS3Cy8AToTM2/ZhBBd0S8TkvBrw=; b=eRAq1WAdlXVzkmQS7hGu0nozRC 15wcLiOpBNO2azsiE9umptASk9KZ9FxNZz4gVAkUNTm0J9MzvrhYtev0TLe4baVp/9zI+UtUqr5tn zTv8MFHYYRjPXDl1oiFORi0a1eEqBGQGAwfDt1PxVm3Cg7+CBFVXAEZmS4juW/mf74fqcGO0IJDTT xusx6Dm7jvLQUKAQrU382+dowwCaTDRKBRuc5naWKkMApYAxVsq4udYeQUsN6ofDC7BvL+BK9WorO vszA67KV3gs7Zlsxeer20cYuM0isf+5vP2/6Bm7r1Kxz9m4Q+4T4GRniIWPUXslZbESBAIMblE8JG fpB5SvxQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3Nwr-007JjJ-Md; Thu, 08 Dec 2022 20:56:53 +0000 Date: Thu, 8 Dec 2022 20:56:53 +0000 From: Matthew Wilcox To: "Vishal Moola (Oracle)" Cc: linux-mm@kvack.org, damon@lists.linux.dev, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, sj@kernel.org Subject: Re: [PATCH v3 1/4] mm/memory: Add vm_normal_folio() Message-ID: References: <20221208203503.20665-1-vishal.moola@gmail.com> <20221208203503.20665-2-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221208203503.20665-2-vishal.moola@gmail.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 Thu, Dec 08, 2022 at 12:35:00PM -0800, Vishal Moola (Oracle) wrote: > Introduce a wrapper function called vm_normal_folio(). This function > calls vm_normal_page() and returns the folio of the page found, or null > if no page is found. > > This function allows callers to get a folio from a pte, which will > eventually allow them to completely replace their struct page variables > with struct folio instead. > > Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Matthew Wilcox (Oracle)