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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 741FCC4743C for ; Mon, 21 Jun 2021 14:33:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59EAC6124B for ; Mon, 21 Jun 2021 14:33:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbhFUOf6 (ORCPT ); Mon, 21 Jun 2021 10:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbhFUOf4 (ORCPT ); Mon, 21 Jun 2021 10:35:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB0AC061574; Mon, 21 Jun 2021 07:33:42 -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=NUL0uaOl6BkuzDA85W5PvpTXkrxDHe90LX6oMMLZWA4=; b=ZvD/1038jZdKlZxctK6IFj8j4F qyW7/zfnfg/ZojoUwIhQTqiAI5MI8ZwK0tKJ2qtkMXjUz1HeLq8s0EHzNjH87yYnc+ytbse2FjME2 JHcF0FRL80YW74Us6pmAr4Nw5c5pJUy9n3lydIzQ1UdfAN0RohIahrj08sy3SXYyK/w3v2nHEZC87 otkeEBIcDjzaQdGxcHnpDjCrLkO8WnNfs4VFBAQaR9LrC8qOyQKXbp5AEC7+4Jo/5ioiK5motN3yu HMk9xbW6lwB/HsuJk5F2jcUcPidM0iMBeX3m7smS0Fe1pL52esYmstkoEf88Kzo9orPSnEHZTjqCP e9BMG7LQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvKyj-00DBPp-0L; Mon, 21 Jun 2021 14:32:56 +0000 Date: Mon, 21 Jun 2021 15:32:44 +0100 From: Matthew Wilcox To: David Howells Cc: linux-cachefs@redhat.com, linux-afs@lists.infradead.org, Jeff Layton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] afs: Handle len being extending over page end in write_begin/write_end Message-ID: References: <162391823192.1173366.9740514875196345746.stgit@warthog.procyon.org.uk> <162391824293.1173366.15452474691364794223.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162391824293.1173366.15452474691364794223.stgit@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Jun 17, 2021 at 09:24:02AM +0100, David Howells wrote: > With transparent huge pages, in the future, write_begin() and write_end() > may be passed a length parameter that, in combination with the offset into > the page, exceeds the length of that page. This allows > grab_cache_page_write_begin() to better choose the size of THP to allocate. While this is all true, it's really not necessary at this point in time. That change will come with a conversion of these functions to work with folios and basically every line you change here will change again.