Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4476619pxt; Wed, 11 Aug 2021 07:01:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcOO7RWZeinCWUpJpQ+ITx1zU9rEE1he65RwdmxZGbJQzciSRGJKFBMP4I62eM7a6Fg96s X-Received: by 2002:a05:6402:49a:: with SMTP id k26mr11419540edv.279.1628690466790; Wed, 11 Aug 2021 07:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628690466; cv=none; d=google.com; s=arc-20160816; b=D0xGayUwS1vOedVHP2YxBC7fiXiT6p6m4g/XKF8zGa7/oFdrmebUqCUvUEcTh7s4SW JfJ960n+fMJIzSY6OaMrJCppOwlmyjehUKzHsWXOiwH3I3sCKUWQyjRVWC4lIer4hDKM XGlaYpjh+6tywG/9yyzMdPu1Gd4J2CX6nSsVNx33WF7Z3q369TeXESsihOKkKZ8AFGog meukNcTkLY/yxNoaqqOZK5oSwFKkpGZA8t5h4mwJfxlDL5n5Y1QMNihqXagO36sjimfN ncLnemVe5J6vATpU9lu/4XW3OTGcvYsMpIC25g9duWeCyDxgE/PLmtciTJHhpNZAQpXP ic2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=+xIMLqqj+ACXa30EMHHZHuSRAZbV1Yhwen5eQ3Ve574=; b=RrcYUiu/V8pe1xOx/TtN53SpwzicggbvNFqaLX/HdrEaS3il2FVQGomE149GX/MHYo PDpr3YIM/c8xoZujSjGJ7Yp3NUu2O+GeXAhS9li4XJogGwAIFGi9AGGNZByKanVNVvCm fMFfO5G6xSt9FaQueIAVIwv4jBmwvaeFAavUitc/Gnr/Zjf154pLkW2u7jV/cGB+IH94 hm13il65nr3uFtn0IGH/jWYGPIRjDDowxuWBB4mThK+tpV2fZCbtktnu6S0XSAw517TM 30l6V6OBqhji+iTMkhCfm0rcbJOyTdjhaYwB/EYs9zVneevb82WT4Q43VOFlH3N68hw0 3rvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=AfhtDVLL; dkim=neutral (no key) header.i=@suse.cz; 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 t7si25599882ejy.5.2021.08.11.07.00.42; Wed, 11 Aug 2021 07:01:06 -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=@suse.cz header.s=susede2_rsa header.b=AfhtDVLL; dkim=neutral (no key) header.i=@suse.cz; 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 S231904AbhHKN7c (ORCPT + 99 others); Wed, 11 Aug 2021 09:59:32 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:53060 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230479AbhHKN7b (ORCPT ); Wed, 11 Aug 2021 09:59:31 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E620222213; Wed, 11 Aug 2021 13:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628690346; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+xIMLqqj+ACXa30EMHHZHuSRAZbV1Yhwen5eQ3Ve574=; b=AfhtDVLLi5FNvHNlaB5Ew1nyvka4XVmzVYmU+M/4xA0c4H9y+DqcxSn5t6SaMKJ+ePMMfj pfg3aj7U1kKeBVgmYgxv2DH8oVrxhq5ln05kipgvssq4mdMk969iIAh6slkQIJnYVMDQF3 mGWDUxxyICXt8P4Do5gx9ycPOjygNRM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628690346; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+xIMLqqj+ACXa30EMHHZHuSRAZbV1Yhwen5eQ3Ve574=; b=x1coYBARjAB+eC0nSKfchs83K57x4S3n07TEmWqTTC69fAN1LRccCxdX2p7C188G0wgHGE 9bDBspiXtR4P7ZCw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id D391213969; Wed, 11 Aug 2021 13:59:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id vIT5MqrXE2F6QwAAGKfGzw (envelope-from ); Wed, 11 Aug 2021 13:59:06 +0000 Subject: Re: [PATCH v14 052/138] mm: Add folio_raw_mapping() To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-53-willy@infradead.org> From: Vlastimil Babka Message-ID: Date: Wed, 11 Aug 2021 15:59:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210715033704.692967-53-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Vlastimil Babka