Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp388881pxy; Sat, 14 Aug 2021 09:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEWTXpLaYOwrYRDzwPdxst925N7B12DcNsJqDZH6xIUQhSIA9KTdeeb4+9yHutEG/BHQDN X-Received: by 2002:a17:906:f854:: with SMTP id ks20mr8334479ejb.421.1628960039919; Sat, 14 Aug 2021 09:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628960039; cv=none; d=google.com; s=arc-20160816; b=ZtcI4J1sUV2zUTxK2P4ed5X1HafYk6f2nyTlySDSm97FnVsbVGgyHbck1B9tIoY9Eg Qn/0LSsQDx3qFCtT8Z9zjOm959vamb7zFwtp2RxSXVS6ntVWbz0wn37gggHSA9ptqmpL 82Y13KD5f8Kp0iX/ipbFApSklo2ODHaKa/N9wJ04zkN8nWYXQitQ1/U/mg2zU6V/x62M lEmH5pBJh9t9gHki2IKow3e6lDfgHEbm74a85mo7hN/3zDm/qBDNiZrHBpO7mP1Xm1Qh 8jDKxbKrNntbxscuHL9jVo2LxGSGVf5P7TfKfTc6SZuJbyCtxpSaVUpMIajj8rfw6EKz ATFw== 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=THZ//hV3fEyfAA4zhklKtKpMz1OFaHnMmtlB1qWq1hg=; b=TBmgdI0wUU/m+89vC3DlWprv/5dihtc7Nx3K5vlx/uTL5A67eDiBMPT0SdfgIBwuCx Ud2o5KJqFMm+6vFEsiPPUeR1hl8QAtpI7rIwPAGbQs8Dc8KQBaVz8oAyF+KyDq/+laRC e7MR8jO9Jj4308vjt11zWWOyYyUG4r23CB9XnvWQAlKNdHL7ZJsIRFvUUO1DgaQ00SRW gI+20A2gG2xmbfNUoq2PMDfdpa7Inzd5YN6Ia1ULyMgFY2PpmcHGpBLCH1lt22BHp686 lV+FnqngDquDw9/nVtCeMfUG6eazOBKzXHWKCnoFyKCJyYnkvZVh0Roy+dartrBJvJQD F7ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KedV6pi3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg6si5310460ejb.390.2021.08.14.09.53.36; Sat, 14 Aug 2021 09:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KedV6pi3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238655AbhHNQwZ (ORCPT + 99 others); Sat, 14 Aug 2021 12:52:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233116AbhHNQwY (ORCPT ); Sat, 14 Aug 2021 12:52:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E8FC061764; Sat, 14 Aug 2021 09:51:56 -0700 (PDT) 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=THZ//hV3fEyfAA4zhklKtKpMz1OFaHnMmtlB1qWq1hg=; b=KedV6pi3ZXiTo5WIk8Uo2beK0N UcDULdF2vZ9BxASpNSR7UaI3c3iU/fWiKCtM21zMX/YvS+njS/e7R7SFyUR7qS6rWQx7yWwOgru57 YHUe/u6pKQCQNFOnyiy7OIxhdCbQOLf6SbXAkG0qb1TD/mn5A4jclTnUweo/sNgHczjL3GEVzIIXp BYFLhjat+sF4Cux8JG401ykGk9DojGJgPQLsQvUmQsP43U+/lTWzkpL1V4Z9O6sjMAe2Fn5aO0Bw4 llNeag6pF+9c07EG4MLzC00Sr6PDfMHl+C5ANf1ZX6DJs551Qxec74qm1Xg1l6zSHTSYcbuJ+QNuj aUEdqxfQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEwsX-00GrRQ-Rk; Sat, 14 Aug 2021 16:51:33 +0000 Date: Sat, 14 Aug 2021 17:51:25 +0100 From: Matthew Wilcox To: David Howells Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v14 052/138] mm: Add folio_raw_mapping() Message-ID: References: <20210715033704.692967-53-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> <1811270.1628628133@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1811270.1628628133@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 09:42:13PM +0100, David Howells wrote: > Matthew Wilcox (Oracle) wrote: > > > Convert __page_rmapping to folio_raw_mapping and move it to mm/internal.h. > > It's only a couple of instructions (load and mask), so it's definitely > > going to be cheaper to inline it than call it. Leave page_rmapping > > out of line. > > > > Signed-off-by: Matthew Wilcox (Oracle) > > I assume you're going to call it from another source file at some point, > otherwise this is unnecessary. Yes, it gets called from mm/ksm.c in a later patch in this series. __page_rmapping() assumes it's being passed a head page and folio_raw_mapping() asserts that. Eventually, page_rmapping() can go away (and maybe it should have been moved to folio-compat.c), but I'm not inclined to do that now. > Apart from that, > > Reviewed-by: David Howells >