Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2496855lqb; Tue, 28 May 2024 01:22:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfc6Qr1x4k0KWJPh2pEAEx/06euHSRpNOfQ6yO6ffwoVTdMCP63Lz7ab8YZixVQYKv8EUUh41De2v1ewpWzXzP/2d7aNcr9QrL36zC5w== X-Google-Smtp-Source: AGHT+IEeeBYDHj1aAOBxVWCb6/r+pC8Kikz4r8bDuGujQK8dRMLkYA80Wg+N+4DyiPCWzdV/KYPs X-Received: by 2002:a05:6a00:450a:b0:6e8:3d5b:f3b1 with SMTP id d2e1a72fcca58-6f8f3f9fa96mr11289981b3a.22.1716884545197; Tue, 28 May 2024 01:22:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716884545; cv=pass; d=google.com; s=arc-20160816; b=SgvI8T4lv6dmE/QgrjPYqkRbUjsJvUrWmdBqzhg8TPq8QsXAatka+8PnnK2gHBlgVC vb2Vsb590cxOW8m2Gnp1lQfA/ov2bE6aE935mKB3g17o5/UFqbtaYRqHbmbUaLGTcvhP Sur0Zue9ClWDRWxVFW8FFLnDAxpyaeLzI9RusYuPtGBjQNf8HeloYyAJmX1KTygg1Y+g 7Dl2G+N0q7/A+5Xz5pabTtFnXAhT36AtqL963t/C0zl7gdgBQQ2f5MtUIgmDDcibqrJ1 mx9gUjftdRLVjAMbcEd28wowgQb9jeRm/tbJR8kHf2A3gnduAohqL4wFH4zLi4k8ARRv Jc0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=HxV8BzlC4d8oc971uwAuFJbg7m+U49jGxWYEK5ArcBs=; fh=8r56WFx5I6rFbjwVQEEmWbbms35gGilIAfD3/gNPn24=; b=jYOJNAhRXj0gCIUK4OEtWoLEWg1FgiHNB44KfO8BzxfTP+v9Ulbvw4JbmMX0pFV9ML UNgQkfofWAxYm+aA9mcY0V07vGdi9dXDPL5pAsbJApdVCdPguOT9aAi3YrlImsE/Oqj0 orC3zrEB7i+ouVwDgpzGpH+q3sqQw3nw8GupgVIKxRmrpeUrG4AfjMbnUss8llvZNBED 2rzXcZMQxypL3Hl4nTcM3n6Nli4ebN5BJP+lGXqtJP6szIHO9UxXIgX5K+3wdZyVJ3pA cHjhSYvrjw/iqrIq1aM9ydCfJ9/N8b+3hyvQi4oRZTiIVb9TvTM6fgldahhBBroQmRnI ywEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-nfs+bounces-3431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3431-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fd8e04bcsi7516754b3a.318.2024.05.28.01.22.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 01:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-nfs+bounces-3431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3431-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2ADA9286F18 for ; Tue, 28 May 2024 08:13:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7373313B583; Tue, 28 May 2024 08:12:55 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 843FA13D8A6; Tue, 28 May 2024 08:12:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716883975; cv=none; b=FQm3FSezYrhxHhIutXjpvNpuHMR/QIEfeXiCJqMupqMp7Xbf4aVX7Yn6S146Qy7R+HulqZFzTqCTDsDiFFawH778L/1rUzVCvzRP9xd3jmUvv4bfZkJBeCQo+Z2jivuL0WcZh6MvYw1cV+xglFaRObilw8QkqzUvK/Id5O6hzV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716883975; c=relaxed/simple; bh=IzUbOSJv1UNWlKPQlFqYVLQlt6cBtVdIllaKtcWGvu4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OErWuAkWkzyuhNXKf/OOZlPwunekVFJRRPvpvjmB4Fp7t3W83aML6TkPsvCzLB5MF2pKCv4J/74C9gb5CYyuUAhfbwM36P+gVk5vbpUjJy/9LC/pRqXgJ40q/fjCqg3htT2yVDIk2/TcxhdKtWeJ5pbBIaJ2ltRrcWy1naAx3GU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id EF8E568B05; Tue, 28 May 2024 10:12:48 +0200 (CEST) Date: Tue, 28 May 2024 10:12:48 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/2] filemap: Convert generic_perform_write() to support large folios Message-ID: <20240528081248.GA3192@lst.de> References: <20240527163616.1135968-1-hch@lst.de> <20240527163616.1135968-2-hch@lst.de> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, May 27, 2024 at 07:17:18PM +0100, Matthew Wilcox wrote: > Could you remind me why we need to call flush_dcache_folio() in > generic_perform_write() while we don't in iomap_write_iter()? > > - copied = copy_page_from_iter_atomic(page, offset, bytes, i); > > - flush_dcache_page(page); > > + copied = copy_folio_from_iter_atomic(folio, offset, bytes, i); > > + flush_dcache_folio(folio); > > (this one has no equivalent in iomap) The iomap equivalent is in __iomap_write_end and iomap_write_end_inline and block_write_end.