Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1886811rwd; Sun, 21 May 2023 08:13:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6G0DoeMOIl6gpExkTyEFOz55UCo+8WDZSNftlqAKE7ln6rKEflZmKsxI+Uo1AyuCtUmIVX X-Received: by 2002:a17:902:ecc8:b0:1ab:1260:19de with SMTP id a8-20020a170902ecc800b001ab126019demr10057228plh.11.1684682036535; Sun, 21 May 2023 08:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684682036; cv=none; d=google.com; s=arc-20160816; b=TR7aSQZd5xPPMCqNhEgYP9ByajphVlgcIc5GfouryFXoeo4Egh4lKD0kdGfdHrAgcF nMD5tu84gl1C0crEAYuyaZfalTAEHVjm6JUcICarDmlZATaKq/HS9F4mPzK00bWX367n 0jsxFCWjDbqfeDQvMtxdti+253G4yHCEMH4YqMRWQyc0N3CvPeYmJFnOXJ5jxuU5HKU+ 2c1q2OHKrjS4QlewVelu/99cnRYKVhtr2wcLefWu2/oV+bOmzo3Q6hz07zoQ7qQv80UJ aTy56U94plz1L7QMwKvoSYyGWvXwVZsZJRqn1s58TdUgAPaRCTBgLTYMkdENXarHKZlH TFlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=5MWQQJ5orNGMt/23APFYO3dgWJ4x/JHJL6QCSzyUG8M=; b=khc6S8d9DIp3VZJu4UUAtjhx5l94lotw2cENWj92N3ATYjUq5YUCSy/00c7FvoIXe2 R7P9pxhF88cbPtk5rzGhTrxsqGn5AlrH5QjJMXoy8g5EdbMOATcExPDLMHoKxFELTbPK yboTcMHTXBKuJVy/bN9PCXeFnA9xc/SQmnkHT8aERjpCnxLTZJAdQpleh3dgicqijkLB bVLw5xp6CtJcH9VxZgxdFIrH4rk4zj8kCj5PIkAtW+lWmG1hLRpxVttClVGjjj1LJApP 0vOwGGNQ02ZCjHfjGxLSM+SVVvfNL+2BOIqpFkZ2Eo2daPvGis8SfOAzP5vHwbD9nkxy NFMg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170902ea0400b001aadd1a1574si3398589plg.530.2023.05.21.08.13.37; Sun, 21 May 2023 08:13:56 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjEUO4u (ORCPT + 99 others); Sun, 21 May 2023 10:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbjEUOze (ORCPT ); Sun, 21 May 2023 10:55:34 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D61B3; Sun, 21 May 2023 07:55:32 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0Vj5ET5O_1684680925; Received: from 30.15.209.15(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Vj5ET5O_1684680925) by smtp.aliyun-inc.com; Sun, 21 May 2023 22:55:27 +0800 Message-ID: Date: Sun, 21 May 2023 22:55:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v21 08/30] splice: Make splice from a DAX file use copy_splice_read() To: David Howells , Jens Axboe , Al Viro , Christoph Hellwig Cc: linux-erofs@lists.ozlabs.org, linux-block@vger.kernel.org, Hillf Danton , Jan Kara , linux-xfs@vger.kernel.org, David Hildenbrand , Linus Torvalds , Jeff Layton , Christian Brauner , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jason Gunthorpe , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Logan Gunthorpe , Christoph Hellwig References: <20230520000049.2226926-1-dhowells@redhat.com> <20230520000049.2226926-9-dhowells@redhat.com> From: Gao Xiang In-Reply-To: <20230520000049.2226926-9-dhowells@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 2023/5/20 17:00, David Howells wrote: > Make a read splice from a DAX file go directly to copy_splice_read() to do > the reading as filemap_splice_read() is unlikely to find any pagecache to > splice. > > I think this affects only erofs, Ext2, Ext4, fuse and XFS. > > Signed-off-by: David Howells > cc: Christoph Hellwig > cc: Al Viro > cc: Jens Axboe > cc: linux-erofs@lists.ozlabs.org > cc: linux-ext4@vger.kernel.org > cc: linux-xfs@vger.kernel.org > cc: linux-fsdevel@vger.kernel.org > cc: linux-block@vger.kernel.org > cc: linux-mm@kvack.org Reviewed-by: Gao Xiang Thanks, Gao Xiang