Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2132270rwd; Fri, 19 May 2023 01:10:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5neYRAcetEbMvKAiCA8z4/HUf7BXFRci8HUMAejI8TJ8imuMC0iBpSxxAHNwIlu3yCyonm X-Received: by 2002:a05:6a20:7215:b0:d9:250:665c with SMTP id y21-20020a056a20721500b000d90250665cmr1074621pzb.15.1684483844943; Fri, 19 May 2023 01:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684483844; cv=none; d=google.com; s=arc-20160816; b=hQwqOsRBHu2jY8lSLQHZQfRMHVg8JDde4IBHI7fTaH0f0+chobLT3LZy1HEnZWPq1B efVJhmEPIE7wtXxrqMCdITVvR/Zv1DXtbk2ZsUu9G/I4PYqJkpc9sPgTD/vyQ9abdlQw xEuWf8FpQKw/AgTiyGT6lzYq6SlEFXGHyhC0KEf5Q3MH4V7IsuYrohA/EN6bR+q6C48P lhg0iQgMVhbttHTuDR8OCkZqLuWpMR0NOYr7wcOAaMSJAVX77HFUCWLryeI8i4aFZ5v1 VAV8aT6joTYX2Q6ErhSHZ0jQ4X7B226AUeWtZiOehCzFP9wk3Ao2dhIHq5ryKai1pjKs IRWQ== 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=+KcNj38ck2QF6TY7QpJyCILaVWe/y++Y4IGZh5WM6/M=; b=KVm3z9kudsruMn7wA6CZCMaDXBP0AfgTUWQ5Z5Ah2+1gcMg6sTD/A2gqrN4t4X98It X8wZqLqvSmVdiwWLWKIJCM/BdAxb3OIg4SJt2h16C+kx3cczkCo3YynSqGQ4TMVFLIbS TGXcJwA2UAQ6EQX2OqkmA9ARR/UREFkV3v0/icAd0hNXjuZGw+ojSttZWXmfTHC8PW0P gH+bbUUju4Xz3T0Hu/YX4MlH2JwEQM59gQ89kjDntDW0aUVbsSBC55OPDmRD05y7D6Nc SQ73TdtQvZC+2O7zeIJ+xUKpgQ+1iaeCCm1atKvNi+fjkyCdoPaJej+D1USZqDB4WmkL G1OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="EILKCF4/"; 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 j20-20020a633c14000000b00534878ba944si1568065pga.336.2023.05.19.01.10.32; Fri, 19 May 2023 01:10:44 -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="EILKCF4/"; 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 S230112AbjESIK1 (ORCPT + 99 others); Fri, 19 May 2023 04:10:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjESIKY (ORCPT ); Fri, 19 May 2023 04:10:24 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E6391A6; Fri, 19 May 2023 01:10:22 -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=+KcNj38ck2QF6TY7QpJyCILaVWe/y++Y4IGZh5WM6/M=; b=EILKCF4/UqHDv9mi6SKDXcFyKo cdPd47QMCzDlG6o53QlCOZOe346y4W9Qkf482gpqYE3gnzht4wtpO8bPsKhN88Z1V7bA3Db8afI+a AXjbJoheJOfgmY3ClNKdB5NG+SAihzQ8ygcip1mTQa3a/yMSlFdtlOaI+inmDt9/rX3/Iq+SUWh43 5b8SVHjGlgO1c8NDzCG7QO5EWTniG17r2GqzTzSNFMw9WRcUSC2GDnliQsbXHRSbqOefid93BsSYs nNdZ7yByE7x/DcRlMKe5+ZP/35erKJjLRwgXmEqguAL2yYFof6koWpAEd8a4I+5kO2VK19jNow573 Gz8nMSDg==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pzvBo-00FTbc-0R; Fri, 19 May 2023 08:10:16 +0000 Date: Fri, 19 May 2023 01:10:16 -0700 From: Christoph Hellwig To: David Howells Cc: Jens Axboe , Al Viro , Christoph Hellwig , Matthew Wilcox , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH v20 05/32] splice: Make splice from a DAX file use direct_splice_read() Message-ID: References: <20230519074047.1739879-1-dhowells@redhat.com> <20230519074047.1739879-6-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519074047.1739879-6-dhowells@redhat.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,T_SCC_BODY_TEXT_LINE,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 Fri, May 19, 2023 at 08:40:20AM +0100, David Howells wrote: > +#ifdef CONFIG_FS_DAX > + if (IS_DAX(in->f_mapping->host)) No need for the ifdef. IS_DAX is compile-time false if CONFIG_FS_DAX is not set. A comment on why we're doing this in the code would probably be useful as well.