Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp396345pxy; Sat, 14 Aug 2021 10:07:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFnRkhcMXU0V46O/uiHqF3zqxixthBWozLQUo9/n3kuK8tRKy53l9cVLi/b6smyjobmHB4 X-Received: by 2002:a05:6638:265:: with SMTP id x5mr1691280jaq.23.1628960857908; Sat, 14 Aug 2021 10:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628960857; cv=none; d=google.com; s=arc-20160816; b=rU2Nm5iLu0/Ikw2NPlG26Aes0VMjGpqc+WBwtxb26uDETJWegU4/idQ0aC5Glbpbvk 58IGK8BxLumM18VBCQm1D5dTABwL53w0DJ6484ObvpKv4oIatVf53pkhG21Y+PnFY87f yS2xibdLq9opzec3janxq9bXwNyJf8IGktF+GDxGRl2Cls0Y+NV4AcVAxSUgCKsIaNF0 8G7M7qHyO5xZ+Oa7X+JTRuIrG4uGXhF2AP4JOjf1gAA18TV214u6REkAhBIEYbnp+k8r ba+oorSRchqGTLCAoSVv0pvhBE3xlherxD607QdDmGqWhuJ1zCrob2OwoCSZrXEKft0a fg6g== 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=N9Yv2av3cpyv3lJbvKZNeQlU7TaQP8VpMldoCKFJq8k=; b=VzKDUj/xti3GDe9LfORfSUd5KZxPxFrk5bztWpaOmyqWZNHS+v+4w4FelA+46x1ztR 0a9yKFqODPyObJDmzUd47vc0GMoxRH2o/iCVqbKNQO/cyV0ClYNRFAhuf8v7wc/ws0CE 6FkeUvxYkIoEFXLTmGxA6mz0FbMg+6nQ2njvafBvulyM0YxeT3CNhWv3XgdiUw4Aq+Gn wAYgTyVSqEA5PmBi7FVD4JHj04bfNY0KfksAFyuckQiEjDWXlIzcUNfoZu2GwFaH8cOP i43Nu3y3hyG/9RxNJ54lsJs7CoQUaBvfYyU9DBIZ9YoXCFVjRHWVfdH50a7Z9+So7Gwt x6/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hQ+oYO7a; 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 j23si5253786jam.32.2021.08.14.10.07.24; Sat, 14 Aug 2021 10:07:37 -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=hQ+oYO7a; 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 S238575AbhHNRHG (ORCPT + 99 others); Sat, 14 Aug 2021 13:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234577AbhHNRHE (ORCPT ); Sat, 14 Aug 2021 13:07:04 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F1AC061764; Sat, 14 Aug 2021 10:06:34 -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=N9Yv2av3cpyv3lJbvKZNeQlU7TaQP8VpMldoCKFJq8k=; b=hQ+oYO7a1shonLjP7Cn0NzXSqZ vv+8E0DmbARYhOfI5154UkFS3yh+j7O90EJYchLMpF7V1uNiEfBFr22KCiT3iCuXynwPGcrR6LTZh ZyPdEFwZjxwNfr4wMXOXpPCcDx/HjQCwrL+eALaLWdzcADJuqFvQx6tt9CVlDv+LTf1VXCLgmkp09 XlmaS4LDT2pM2sprqtS1+XoDNCLaM78OeJhGgEQ15SHBGGM8Vqe26RqQPvothSiQfuNSEQoHrvz5B snbAg51ztzmkLuV37jQGJoNXgPX5Rl8VY267ldcQdkNt6N3Rc6eWkob9lwD+EbDgMdxDmsYW6jlnR sdZQnpvQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEx6l-00GrzN-7C; Sat, 14 Aug 2021 17:06:15 +0000 Date: Sat, 14 Aug 2021 18:06:07 +0100 From: Matthew Wilcox To: Vlastimil Babka 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-1-willy@infradead.org> <20210715033704.692967-53-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 03:59:06PM +0200, Vlastimil Babka wrote: > On 7/15/21 5:35 AM, 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. > > Maybe mention the page_anon_vma() in changelog too? 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. Change page_anon_vma() to not call folio_raw_mapping() -- it's more efficient to do the subtraction than the mask.