Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4038828ybl; Mon, 12 Aug 2019 10:19:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaIzwvAm2h+Zcyf/yeVPgiKULgRF048+Vke+UXkRBykkYf866MuSyGysn/QVYi6tp38rvO X-Received: by 2002:a17:90a:c086:: with SMTP id o6mr371091pjs.2.1565630345946; Mon, 12 Aug 2019 10:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565630345; cv=none; d=google.com; s=arc-20160816; b=qTm2DriyicwVimhma2l1Qf6O0hOSf64p5IW20nrGA+dBz3ASWrZzptFICRxJVVS50H Eyk85h5Fx1N4CDruLNiwS6i0KEnlngSZIelnrg8HAKIcBKXwgn+g/ZXm7+N0R91xsLT5 mVx7/d0xXM2CdTfKjKoachOCTKZWfC0aUn5aZOpe1MbZt08ZpNxqXspveAMClNNwwv4X H10jjmsB4GhXKPqGpDu1F3wT4qmMgUeogkC+1mIztWlPzeMQwZxClRgQgLNFq6/4P5fU iNr/konraYHUZ3E54SxoEX6Sm9D4LtEUm5R8KexGZWhWGyNf+SICR7ojxe6U8DppYZY4 ssOA== 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=DEQNuctojuWVbKWasBQpEwHSDMEyohKSnrhZzBUeOKw=; b=sa5UZFH93RrhwZzzINWSsKVZZ31evVBxX0ZM0TqDlokeq6Dc6WXmjaX/kMO3GM4wGH CD5dg4n8+wQcqLhkPUWQ5iGK+H4+AZG16vS+toB9k4NYbYz3Nc15FJ/Kca6RFWOcyUJS /iURj48iqPCrYZdeXN+xLeqhrA2Ax+V+CgYP+oDlxlnnsUtmVgax9so6asjAHMr56QXG fzRfDBFlfLi9ksidRKeggNrBOzTmdZLfHNfxQH1lMAD36v1n7sYwo39E3QqjirfzpFsa YBJ8MwvrHUk4Izw3fECrJ1t5xrKgk2xP8yy+MmspfmyWh7DuX5mUQrtHDhdzF2KrjWRy zXsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LcIA8FNM; 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 e10si57170381pls.163.2019.08.12.10.18.52; Mon, 12 Aug 2019 10:19:05 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LcIA8FNM; 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 S1727024AbfHLRSg (ORCPT + 99 others); Mon, 12 Aug 2019 13:18:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37264 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbfHLRSg (ORCPT ); Mon, 12 Aug 2019 13:18:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DEQNuctojuWVbKWasBQpEwHSDMEyohKSnrhZzBUeOKw=; b=LcIA8FNMty82d8dDrPk94VQcd vpzGamIB7+6/MRLw7Q2LtAlskL7BwCC28jEzgMPpkGz06AQXlOEtXa2Pu0YWi02zmQJEPOUwTiyZ3 +F4iXjx8syhVACBnNK0/oTT5fLFxb5vvpMJG0VZp52g+DV9/h4dIGWPq02vX9LbQ0+pIlntIaY5BH nULfLobWqoMmdmMOKQropiIfgfhavVgotpBLNjOtpShK00z4/b8qBa2KkjcqDxPAtZrEFFd1jdHpg awgwk5wWTTV9Ob/NjpicAwMDSLNf4oSr/kW64E7mG3nS7yC9y3H6+425z3hvw6Imc/DbaMF+z1piG sq6Be6DMg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hxDxr-0001M7-RN; Mon, 12 Aug 2019 17:18:35 +0000 Date: Mon, 12 Aug 2019 10:18:35 -0700 From: Christoph Hellwig To: Matthew Bobrowski Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, jack@suse.cz, tytso@mit.edu, riteshh@linux.ibm.com Subject: Re: [PATCH 1/5] ext4: introduce direct IO read code path using iomap infrastructure Message-ID: <20190812171835.GB24564@infradead.org> References: <3e83a70c4442c6aeb15b7913c39f853e7386a3c3.1565609891.git.mbobrowski@mbobrowski.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e83a70c4442c6aeb15b7913c39f853e7386a3c3.1565609891.git.mbobrowski@mbobrowski.org> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Aug 12, 2019 at 10:52:35PM +1000, Matthew Bobrowski wrote: > +#ifdef CONFIG_FS_ENCRYPTION > + if (IS_ENCRYPTED(inode)) > + return false; > +#endif This could use IS_ENABLED. > return -EIO; > > if (!iov_iter_count(to)) > return 0; /* skip atime */ > > #ifdef CONFIG_FS_DAX > - if (IS_DAX(file_inode(iocb->ki_filp))) > + if (IS_DAX(inode)) > return ext4_dax_read_iter(iocb, to); > #endif Same here.