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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6189C54EBE for ; Fri, 13 Jan 2023 05:33:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232362AbjAMFdp (ORCPT ); Fri, 13 Jan 2023 00:33:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbjAMFdI (ORCPT ); Fri, 13 Jan 2023 00:33:08 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57ECC61455; Thu, 12 Jan 2023 21:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=ysUCfBrwMEP/gKZvWSb1F9GpsO921UxR4IBhrY7rzmA=; b=eltYYegCYuaDF2OLOCNenA+MS/ CJY5LRGNK7trbl5wIFc0/jpq68bC42ljrQTOspX75Hp68CeUs1QkBOGhmXiibOwzcjfwLKcbRCE3n ZrzmSarQSHrbj2S386A5nT0taBrT0f/aLoevjW2ry1LTgYwZoLG9UoBOTzmdbM44wm1BOxrBlEZKq NcJUVUPWW+PMc4rV5dFTjppnd7Q7yYiYqKVPJhT1xLiw9FYUsUzQuEBAJ77Vt4Fqvwz9/qQ1X7tPI tQl9Y1rrZ8Pb611cAL01E3KI95x43t8T1Ev+cjwDGx/z/Ex3fTnZbqSnlIqoVhTQesqt9AhOrWZXE Gd0RVsYw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGCgW-000VVZ-C9; Fri, 13 Jan 2023 05:33:00 +0000 Date: Thu, 12 Jan 2023 21:33:00 -0800 From: Christoph Hellwig To: Al Viro Cc: David Howells , Christoph Hellwig , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/9] iov_iter: Use IOCB/IOMAP_WRITE if available rather than iterator direction Message-ID: References: <167344725490.2425628.13771289553670112965.stgit@warthog.procyon.org.uk> <167344727810.2425628.4715663653893036683.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Jan 12, 2023 at 09:56:25PM +0000, Al Viro wrote: > Incidentally, I'd suggest iocb_is_write(iocb) - just look at the amount of > places where you end up with clumsy parentheses... Agreed, a little helper won't hurt.