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 73EE2C05027 for ; Fri, 10 Feb 2023 22:41:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233500AbjBJWly (ORCPT ); Fri, 10 Feb 2023 17:41:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233152AbjBJWlx (ORCPT ); Fri, 10 Feb 2023 17:41:53 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE5CE16AE1 for ; Fri, 10 Feb 2023 14:41:51 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-318-uEi7rd_bNiCq5v_5lLrP5A-1; Fri, 10 Feb 2023 22:41:48 +0000 X-MC-Unique: uEi7rd_bNiCq5v_5lLrP5A-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.45; Fri, 10 Feb 2023 22:41:46 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.045; Fri, 10 Feb 2023 22:41:46 +0000 From: David Laight To: 'Linus Torvalds' , Dave Chinner CC: Stefan Metzmacher , Jens Axboe , linux-fsdevel , Linux API Mailing List , io-uring , "linux-kernel@vger.kernel.org" , Al Viro , Samba Technical Subject: RE: copy on write for splice() from file to pipe? Thread-Topic: copy on write for splice() from file to pipe? Thread-Index: AQHZPXSEPyXic8n4vkmqtvVlaYw2Fq7Ivx9Q Date: Fri, 10 Feb 2023 22:41:46 +0000 Message-ID: <304d5286b6364da48a2bb1125155b7e5@AcuMS.aculab.com> References: <0cfd9f02-dea7-90e2-e932-c8129b6013c7@samba.org> <20230210021603.GA2825702@dread.disaster.area> <20230210040626.GB2825702@dread.disaster.area> <20230210061953.GC2825702@dread.disaster.area> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMTAgRmVicnVhcnkgMjAyMyAxNzoyNA0KLi4u DQo+IEFuZCB3aGVuIGl0IGNvbWVzIHRvIG5ldHdvcmtpbmcsIGluIGdlbmVyYWwgdGhpbmdzIGxp a2UgVENQIGNoZWNrc3Vtcw0KPiBldGMgc2hvdWxkIGJlIG9rIGV2ZW4gd2l0aCBkYXRhIHRoYXQg aXNuJ3Qgc3RhYmxlLiAgV2hlbiBkb2luZyB0aGluZ3MNCj4gYnkgaGFuZCwgbmV0d29ya2luZyBz aG91bGQgYWx3YXlzIHVzZSB0aGUgImNvcHktYW5kLWNoZWNrc3VtIg0KPiBmdW5jdGlvbnMgdGhh dCBkbyB0aGUgY2hlY2tzdW0gd2hpbGUgY29weWluZyAoc28gZXZlbiBpZiB0aGUgc291cmNlDQo+ IGRhdGEgY2hhbmdlcywgdGhlIGNoZWNrc3VtIGlzIGdvaW5nIHRvIGJlIHRoZSBjaGVja3N1bSBm b3IgdGhlIGRhdGENCj4gdGhhdCB3YXMgY29waWVkKS4NCj4gDQo+IEFuZC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