Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20173290rwd; Wed, 28 Jun 2023 21:34:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ67Y+1V8gvJsxNx/Gqh8XpU/7ced/4H8WnF+lQiF/50GDH8UquBcwRZD0da9APzDZgP74CT X-Received: by 2002:aa7:888c:0:b0:63d:3339:e967 with SMTP id z12-20020aa7888c000000b0063d3339e967mr32173254pfe.19.1688013280899; Wed, 28 Jun 2023 21:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688013280; cv=none; d=google.com; s=arc-20160816; b=nHvSvdJaB2RLYdQbUanahs1DotBWcN1FPfGjn7SK4f5DA2o2szdcNtXKhOgXEKIYtT UKcdcyq5vRgvaNS+fF/W3uYgNWGy8oZRdiRXage2E9QOgoqVnxXtlLuuWk16El7enXoa QlSqYEnbwqXuH52b25PgZH0ZANYhR37yqSuvAjADQ56W3UJ7+U2LawSc1fHXdVu917gM 9wUf5LLDeQuJIUjqpU9/nebccK/o0l3/ZshPA4nJvdFfZVSfBtKZdAGW1EztJoT1t6Vs EPDa4ja/t5HwFZt7NJYFPQJyMX030Z5E/9kUg7xx2ThTm0VCCuWydKPWy2pwfuNzMgbS JgyQ== 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=UyjrCotgO7uYZOm+6Yg4lhXn3aLv6mW8Va1xLVdfQ7c=; fh=BidrX0QsAT4gu8mkLOv1QVziXmP3y1LhGuReRpiSYgg=; b=rZL1N0wZUpMsl43dJUY5UA9CJ2tRKEU9Mki/PMajJbIwubTXmutHpxBvbZKuYNz4kB 7pnqbWIicoLRwacyHMMaBsMeLrc8+1M2OEBDOqmW/Pf11B40V4kZZUIbqi/YJCMLaJWO eGMPqaZKn3z5vxPYGV57n5wE8PQkxwUfgEcPf9R+3mq2mqAFiKLaG1jyj/DpfSRop9VR 1Ei57Bsy8yKHMHbRQk8tIWjHKXiRn/U1yN17nar0YL0DyzZZdWdHhKs4dNmMDny6WpI2 OEjFIyehIzagtElScIMp8NvZ4OazEAf5GyX5SdX77oBBHG+bubK2HpVcgfJh0gwNvkVV T8wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qVUr0VHR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a056a00228300b0066d45f035a5si9373281pfe.320.2023.06.28.21.34.29; Wed, 28 Jun 2023 21:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qVUr0VHR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbjF2DI2 (ORCPT + 99 others); Wed, 28 Jun 2023 23:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjF2DI0 (ORCPT ); Wed, 28 Jun 2023 23:08:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC2C3187; Wed, 28 Jun 2023 20:08:23 -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=UyjrCotgO7uYZOm+6Yg4lhXn3aLv6mW8Va1xLVdfQ7c=; b=qVUr0VHRTIHla7fIYfeQiHZNW+ QRa3R+LBa1d7EskIqn9EftfFl60q4+2a7B8RknJBs1+NL0zXUZOvRihf/qP8doVM8YGWBgtWEgcBO ONVla/ercIhcnDZp46AGDi/BVbxs+G7LJottUP+SyisegXdIiL35enE5WezgWCBqw2hR2Z+/2VV8u ofsuDZcFfXkO4ZFTwVRDqBONkb8eNZ2Y/Od5d1031YE2s0906NCdwL9vU4eWaDxjJxj0yzCsPBIEG Zh/JxOOoZtEOVVnpf5JawymHFG55XuTXed3T7FvwtW+AusOMCqfPPGw2Xn16NrRehIo3WSo96NfYr 4izXUJXA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qEi0x-004XyR-7b; Thu, 29 Jun 2023 03:08:11 +0000 Date: Thu, 29 Jun 2023 04:08:11 +0100 From: Matthew Wilcox To: Ira Weiny Cc: Sumitra Sharma , Hans de Goede , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio , Deepak R Varma Subject: Re: [PATCH] fs/vboxsf: Replace kmap() with kmap_local_{page, folio}() Message-ID: References: <20230627135115.GA452832@sumitra.com> <649ceb3aeb554_92a1629445@iweiny-mobl.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <649ceb3aeb554_92a1629445@iweiny-mobl.notmuch> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 28, 2023 at 07:23:54PM -0700, Ira Weiny wrote: > Matthew Wilcox wrote: > > Here's a more comprehensive read_folio patch. It's not at all > > efficient, but then if we wanted an efficient vboxsf, we'd implement > > vboxsf_readahead() and actually do an async call with deferred setting > > of the uptodate flag. I can consult with anyone who wants to do all > > this work. > > > > I haven't even compiled this, just trying to show the direction this > > should take. > > I'm a bit confused. Is this progressing toward having the folio passed > down to vboxsf_read() or just an expanded vboxsf_read_folio which can > handle larger folios as well as fix the kmap? This just handles large folios & switches to kmap_local_folio(). Doing this properly is a _lot_ of work, and needs someone who can commit to actually testing it.