Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1254904ybx; Tue, 5 Nov 2019 13:01:22 -0800 (PST) X-Google-Smtp-Source: APXvYqz4d3jIEVAmJPZaLrcwkXrFS3kjTzei5Lp/3ityiSH4RqJQuUVXcgKRPIDRphQMzoZhtPbk X-Received: by 2002:a50:8969:: with SMTP id f38mr38179325edf.211.1572987682378; Tue, 05 Nov 2019 13:01:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572987682; cv=none; d=google.com; s=arc-20160816; b=vmKCxjTEYsl7UhcIZGt9IROq86xGwntmaf4WBCtOmiF3RRDznHTpG5QqqHRW1QRq2l EJrq+iAtQ0MV3uyyonicBz32hjlsoID6kp44jY9b1r8qV4qZC45srEt7b4ZXGsjQCpQc 9f6Ah8x0lMkKKuz3YfPAf+GgPzo2stYY3QTguofMGWWTRMfUTCEianZbaUw5KU+wS2/B qKzXQvvJBbzTnAxWgMKYZHBKNCOuGyAPCw6AvqCd1hjKcVpdvO9fFSI0fVlEjQ8QsZf2 3nUrhVwiIWqt5b5DXHPihVFt2sTB2kpQLOZGTx+316TqmP/dj9gPKP9ycM/4cJXaVo/H o90g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Nt3SLKHMKobpRywSNVwbpv8AwQhfDeZr5YI7OOdkAIs=; b=yhgd00hEQmVkQ8DFdfUzykZywycizLMfhsUW1V5sohOhIzm58sMz9bQhOxx7Y0NL2g JnN7Z6T+Hyafz3YRMPkjkjPfQEAEyIYQBCdl1cc62N1kCz2+0p+Ds3aFMBoiVVN4FDXD De2qwBdCeZgCJMr5Z+1ZoGCyyF/f2b8XHlKx5HX2azipnOhxf8oVF6QvoYLxXmC6BeH1 AnXZm0WBCzFglhVJx2HdUE6E/LBQ84os5Z4oKoBB9mlkVppebMktkoNyCxykXpxWTypk 6pL/7Qbo+Q/kFmzEiC6XMUreJBeRW4yjhU8D5AQuOx4T+w6s0uaFE+R1OiTM0TD4JLyO lyzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=e7TrStnc; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si6324314ejr.348.2019.11.05.13.00.57; Tue, 05 Nov 2019 13:01:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mbobrowski-org.20150623.gappssmtp.com header.s=20150623 header.b=e7TrStnc; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729680AbfKEVAv (ORCPT + 99 others); Tue, 5 Nov 2019 16:00:51 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46941 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfKEVAv (ORCPT ); Tue, 5 Nov 2019 16:00:51 -0500 Received: by mail-pf1-f195.google.com with SMTP id 193so15504881pfc.13 for ; Tue, 05 Nov 2019 13:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mbobrowski-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Nt3SLKHMKobpRywSNVwbpv8AwQhfDeZr5YI7OOdkAIs=; b=e7TrStncNCzsbjR1RNNssue+KRAXg0cIf+2YUOc8a9bEstO6nMlR0nXVb8DH5rnhew c+oh7zl7BDiuj3NnLnyyBk9L+v6c1KgTfdlyIAF2Qj8KAgO9fgKD71kzUjm1UkArhE3d 5Nwkn+NmrxjN20i730wYOW0tmLlrlrMS9SKh7/QMrapKnBqvAcRfdftaaLy8/bC96i4m O1CagTJWoBqN8MOOxeZWTmgZtkyizTGcRb3FDAXcrT0SJArMCrwFIeNnFGlZl7LjQuDD EAHtqzInMNItmFACYD3oJ5f1sNxXd4KDcjIkHkq9VJ4AGNvUydZiLqqkoTTrVtEiEB5Z Mw+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Nt3SLKHMKobpRywSNVwbpv8AwQhfDeZr5YI7OOdkAIs=; b=oFLDloibtkjzkFnyMfILGLbSUCktYdk9xxgQuNg/BzmI7rf7aXfx4gb/ZEoDLWjsx9 xphnivW3cvbJYp1pVPP+G4akh8C4HHB1rCz3gWsyxt3d05tmI1zqF3b5T59PAWOzin9g EpaGrJYO5Nw1iDnOWZiOQjqkCtqe03Z/quUTfmeuKxWAS6gmJN+EGKPWyBVbLoORqqjW HTRIQzjrh1doqZoiQ0auVs/bG7W7GZ7W4TDO9PSIsGug+dOH2Rz7svqh6XZBGuE/U6Tz dcQ3LfZuNZffmeC2ZGEFcs6ygEC1So4r7q9Xhmres4IWcjnFgbuOk5jjfmI1FF74PDsY 0jcg== X-Gm-Message-State: APjAAAUpUC1PQ8UNTggQuIGzyCaNjy9COiSc2Ef9Cag4YErHCrDW/6Q+ c9/LnRswdE8+lpS/mmm1MDYX X-Received: by 2002:a62:7c52:: with SMTP id x79mr39555174pfc.18.1572987651049; Tue, 05 Nov 2019 13:00:51 -0800 (PST) Received: from bobrowski ([110.232.114.101]) by smtp.gmail.com with ESMTPSA id y11sm24666407pfq.1.2019.11.05.13.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 13:00:50 -0800 (PST) Date: Wed, 6 Nov 2019 08:00:44 +1100 From: Matthew Bobrowski To: "Theodore Y. Ts'o" Cc: Jan Kara , adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, riteshh@linux.ibm.com Subject: Re: [PATCH v7 11/11] ext4: introduce direct I/O write using iomap infrastructure Message-ID: <20191105210043.GC1739@bobrowski> References: <20191105135932.GN22379@quack2.suse.cz> <20191105203158.GA1739@bobrowski> <20191105205303.GA26959@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191105205303.GA26959@mit.edu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Nov 05, 2019 at 03:53:03PM -0500, Theodore Y. Ts'o wrote: > On Wed, Nov 06, 2019 at 07:32:00AM +1100, Matthew Bobrowski wrote: > > > Otherwise you would write out and invalidate too much AFAICT - the 'offset' > > > is position just before we fall back to buffered IO. Otherwise this hunk > > > looks good to me. > > > > Er, yes. That's right, it should rather be 'err' instead or else we > > would write/invalidate too much. I actually had this originally, but I > > must've muddled it up while rewriting this patch on my other computer. > > > > Thanks for picking that up! > > I can fix that up in my tree, unless there are any other changes that > we need to make. If you could, that would be super awesome as I don't really see anything else changing in this series. I'll probably send through some minor optimisations/refactoring cleanups after this series lands, but that can come at a later point. /M