From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA516C38A02 for ; Fri, 28 Oct 2022 16:47:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE7766B0071; Fri, 28 Oct 2022 12:47:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B975A6B0073; Fri, 28 Oct 2022 12:47:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A865F6B0074; Fri, 28 Oct 2022 12:47:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 99D636B0071 for ; Fri, 28 Oct 2022 12:47:43 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6EF3AAAE21 for ; Fri, 28 Oct 2022 16:47:43 +0000 (UTC) X-FDA: 80070939606.28.6D0B95D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf05.hostedemail.com (Postfix) with ESMTP id 989E1100006 for ; Fri, 28 Oct 2022 16:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666975662; 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=lINxhsqMpOdjiC2dtBaOrXCk/sAH+QCARq0KZ4Gkpt0=; b=SUYnsqBvD4ILt6v17nUMgplSc3GCAVUmrhKfmqkdmpszJglAO0dZZ0B1dY1yVZNQW1MZcE 2ItK4eZqU2g1UkjqpnR2irrIBGn2W2m33jRc1ysMWO8biODPVKSyy09prJddbqVDZ1nRPG CdqqoZ5Z4DjPDVXKQuOKFEOXmCoSYow= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-226-45EZoGBPPW6yfVTL_AZnnQ-1; Fri, 28 Oct 2022 12:47:27 -0400 X-MC-Unique: 45EZoGBPPW6yfVTL_AZnnQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2195C88F474; Fri, 28 Oct 2022 16:45:32 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id 92546492B20; Fri, 28 Oct 2022 16:45:30 +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: <20221028151526.319681-2-willy@infradead.org> References: <20221028151526.319681-2-willy@infradead.org> <20221028151526.319681-1-willy@infradead.org> To: "Matthew Wilcox (Oracle)" Cc: dhowells@redhat.com, linux-mm@kvack.org, Uladzislau Rezki , Dave Chinner , linux-fsdevel@vger.kernel.org, Thomas Gleixner , Ira Weiny , "Fabio M. De Francesco" , Luis Chamberlain Subject: Re: [PATCH 1/1] mm: Add folio_map_local() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <64544.1666975529.1@warthog.procyon.org.uk> Date: Fri, 28 Oct 2022 17:45:29 +0100 Message-ID: <64545.1666975529@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666975663; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lINxhsqMpOdjiC2dtBaOrXCk/sAH+QCARq0KZ4Gkpt0=; b=r5ShFX2VGd6kG3BR7z3lETzIi/UlNof1g2qy5lP4es0KElizSCsldoLqJNzTzW+Lb9UkOO 5Tie7IIXglMscQdN4AnmSg404yx+25hz2EiPcl39Qew9G4Ut8qXbHYT0h91nutAmscDjGu 2j8O10by14hnMOr8pX/ADrpZHe6C97A= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=SUYnsqBv; spf=pass (imf05.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666975663; a=rsa-sha256; cv=none; b=GqC85Keyoj1zp6E+iCyeG34y1r8xJqNBQ3OxZIm+GJd11UnOJlS0kuOi4V70SVfNZ6hrEI jBWbfnog4oM12yYwIsbYA8vxY8DfNfj91ytSXUqdZJiqvQgLv7esCQVM6wB1156SD/YkKZ F2pgOGsA0KEozY7hE70aG1Fs++mrO40= X-Stat-Signature: jkm6cczwegri3en17fghgqbtdm6hr4zy X-Rspamd-Queue-Id: 989E1100006 Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=SUYnsqBv; spf=pass (imf05.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1666975662-274884 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Matthew Wilcox (Oracle) wrote: > Some filesystems benefit from being able to map the entire folio. > On 32-bit platforms with HIGHMEM, we fall back to using vmap, which > will be slow. If it proves to be a performance problem, we can look at > optimising it in a number of ways. Here's a thought: If a highmem arch has a huge PTEs available, can you create a huge PTE to cover the folio? > @@ -426,5 +465,4 @@ static inline void folio_zero_range(struct folio *folio, > { > zero_user_segments(&folio->page, start, start + length, 0, 0); > } > - > #endif /* _LINUX_HIGHMEM_H */ Did you want to remove that blank line? David