Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp829420rwl; Wed, 12 Apr 2023 04:51:55 -0700 (PDT) X-Google-Smtp-Source: AKy350a0yZzXis6mQafS1YcznVAmbWUFJnl2B93SlE2YXkYhqIPK1iEKV8jSmhd3V8MGJ/lMLcT8 X-Received: by 2002:a05:6a20:b191:b0:e5:5076:f4d6 with SMTP id ee17-20020a056a20b19100b000e55076f4d6mr14711262pzb.9.1681300315081; Wed, 12 Apr 2023 04:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681300315; cv=none; d=google.com; s=arc-20160816; b=IOHwA/8cSKxam83/1LnsC10+MTtB52k+WpncQJR70YPXMSFcNzIp9msA7JYJzoXU7+ z+vm40SXqpIsqNtjOP10OMc3Xmw+L9JaIDJp0CDw5k+17kYZDksIBQyMXLA+jATZDbRf 1GBujJXyKGjV82vTzmsgXg1Tm8TKEthxF65/t+EOFakLHD5b2I2clFKKbkHMP5t8PbNy yW6w/r60mLlC429z3YB3UQoFVzEFpZ5Rn8MmwUGSdifIO40nWjLqqh8B3KqexeqXGDAl rEGzbR/9b8tGlhI7sRhLkNm611DxObKISns1w3BvEbFHrYvu8KSeAPz1zRwLQg2V5u0w W5Yw== 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=zuZMIQCS0LHbO7voMgTqb3Zs+sNbCvDT8BF+XruU1yg=; b=KioxC5R8RAIoHKupA5symCMuH0i/N3sNPRuupXC3++MVeZ0447+ACWKjkLQFh1vCe9 lpTAQeljbo6qAtaahQ4ZH6yqznFqJp60gk4RZ5/G2g2G68BUt6s+JVqr6yeCvycIQK0E g9xH22cwquxTfDY13z9WAL2PtZaLJS66B7OVm8amt9ro06uExTitjfS3MOQIJgk7ghQa VbfKLw1MEGgsAfNqNz8a60R+0XrJZ7SyuiwRNxjSOKx+COcrT110M/7QrCAQUwPXfYvq xHFjXAvYJOz+fR+d91yeH2IF2FwTYwDGUzLstAjxK6+4/GAP3+h9DNuIWxXelInEiw6g FPxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ApQPbn1h; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 r15-20020a63440f000000b0051b28ed8e0asi2534373pga.540.2023.04.12.04.51.42; Wed, 12 Apr 2023 04:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=bombadil.20210309 header.b=ApQPbn1h; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbjDLLoL (ORCPT + 99 others); Wed, 12 Apr 2023 07:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbjDLLoK (ORCPT ); Wed, 12 Apr 2023 07:44:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2600F1726; Wed, 12 Apr 2023 04:43:59 -0700 (PDT) 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=zuZMIQCS0LHbO7voMgTqb3Zs+sNbCvDT8BF+XruU1yg=; b=ApQPbn1hKC04z+1uKyJvjE19nm mlUchr6cLiZ9MCP7pyQY2V3E9lNZ0zSvNd4L7johFUzQHeUpjbNxXoQSxCIKHHsqmbSlxxmOLTGeQ +QUYT0AzW4GM78faXomy2hMTWdy4nALiyQuVltujv199dX09R07anzuuGhyxkDsPbGQDR1WtLfPqA LaJfOwDu1A7kcWgRE2G6AiVjRAePkDxFJ0E/ScoIoQBU29M5SGu0RMh9+qcs3UPge6i7KKOlA93cy 76zzpUSgcBIcXfyjkcMpfRDRvcXba7KO62Q8R+1x+mVoEehnuDjdbV/aoBa1Bdgq5EEi4MoUhXueL KIQu/bCw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pmYtL-002vUm-00; Wed, 12 Apr 2023 11:43:59 +0000 Date: Wed, 12 Apr 2023 04:43:58 -0700 From: Christoph Hellwig To: Ritesh Harjani Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara , "Darrick J . Wong" , Ojaswin Mujoo Subject: Re: [RFCv2 5/8] ext2: Move direct-io to use iomap Message-ID: References: <87wn2izbpn.fsf@doe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wn2izbpn.fsf@doe.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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,URIBL_BLOCKED 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-ext4@vger.kernel.org On Tue, Apr 11, 2023 at 08:51:24PM +0530, Ritesh Harjani wrote: > >> + if ((flags & IOMAP_WRITE) && (offset + length > i_size_read(inode))) > > > > No need for the second set of inner braces here either. > > It's just avoids any confusion this way. Does it? Except for some really weird places it is very unusual in the kernel. To me it really does add confusion.