Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3881549pxt; Tue, 10 Aug 2021 13:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOo5m29KnWxb73u2YqUaMvNVn3gyQarej97Dcq4bOgTNTYwjo0K4bhKZteqjKD05MI1zDs X-Received: by 2002:a02:6606:: with SMTP id k6mr29419919jac.51.1628628208292; Tue, 10 Aug 2021 13:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628628208; cv=none; d=google.com; s=arc-20160816; b=kjvcUN6jPav+duBHXkNkPa2GH6QfUASB0K1ruxrD7swTFyWNezPr3WyOzCTsR4YHfw 9eDNudaxogMbFUDkUpzStJ/RuLH/BSdU/j/ZPLdjG0Ps/1po5+XvPkf3nEuWlN1Md9Pw f25nChT4qXGO2FX6BZXxgBATs4AVd2CJL5tNo76bsMqdoFSRDk+HwVF1Jqh2aNRHIuXI HfybCLqr0PK2IRpnlNZCmUCDEr0FXpTs+7xgwMXVHbOOYRuOl7pL8nMY3qycVC4jdgSS S8bK1VexQfY1WLvZ8xhMu5g436VDSoELMB1ivTPGZAg92z4TzUgkmfoXcIhXLfyboYgM iK2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=++wkOjMEpIZk1UaKIXWLectFjgawTsU5Dv9e7nL8sMw=; b=UpJNfEweXwXgcdYOcT0khQp9EfSe/gevGa2pZD9Idu7+4hlz8CzUbRjdO3WfcgB2zE /txV36bw5QK69X44hItS2cd/dG0ZlP4qreBHOtlT/RCJrbMNXa9kXZNehEot+nkiDGx6 C6bLopP+JHN+wFadXIVim+tySku/6MvOAWD5nDImuDp35pBYm3Au47Pw6B1SypWcQAwN 6xIQZ+6ytpqIH1AxRnJ1hzL0pXcFpBThojEchC87eI6wHrgEdQY7ClsDmL8gLTcs2uYT s7/oXCCRh8kTtJgd6OGoYm+W2gvgXKOWDkvDJKSFl9D0O1fdyk5vh2REhG60466pRqaz 2E9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YKtbzcH/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si23483828ilg.4.2021.08.10.13.43.15; Tue, 10 Aug 2021 13:43:28 -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=@redhat.com header.s=mimecast20190719 header.b="YKtbzcH/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233224AbhHJUmo (ORCPT + 99 others); Tue, 10 Aug 2021 16:42:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38163 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233128AbhHJUmn (ORCPT ); Tue, 10 Aug 2021 16:42:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628628140; 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: in-reply-to:in-reply-to:references:references; bh=++wkOjMEpIZk1UaKIXWLectFjgawTsU5Dv9e7nL8sMw=; b=YKtbzcH/oaFXRCwH9WDWcHK+0PEW9HsFQ9ggyJXkYQtiSYrsGjryPGJXYVaBP5VAhv9pwA IiU4d74TcALqYzMqRClCmvZJ0NFt5vBRioG3fz5aJ+hP2SNBl5o9X42OuErKaTgH5c1UHi prubz61SOr5hgrdwq+jBcJTBpTKfi0I= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-252-OpMXW8FxO3ygC_RBe5wxOA-1; Tue, 10 Aug 2021 16:42:19 -0400 X-MC-Unique: OpMXW8FxO3ygC_RBe5wxOA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 074CB1008062; Tue, 10 Aug 2021 20:42:18 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C29A2B0B3; Tue, 10 Aug 2021 20:42:14 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20210715033704.692967-53-willy@infradead.org> References: <20210715033704.692967-53-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> To: "Matthew Wilcox (Oracle)" Cc: dhowells@redhat.com, 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() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1811269.1628628133.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 21:42:13 +0100 Message-ID: <1811270.1628628133@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Apart from that, Reviewed-by: David Howells