Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14050168pxu; Mon, 4 Jan 2021 11:26:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmFeJXxTR1E49TZB1cI3bEA2f3S/2MkTZv2sX3vidSvgSNY7WGc+++y/ZucswRddxw+OWu X-Received: by 2002:aa7:d407:: with SMTP id z7mr75371187edq.234.1609788412162; Mon, 04 Jan 2021 11:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609788412; cv=none; d=google.com; s=arc-20160816; b=UTazkX4gXwOhoHFgbc30OByNh4i9NalOJFljRQofn1xGIQgK9DfKZmz7OgMOBBTD7O Wmldyern+DZeK61jQfIsVI/e1I2VygUEB5V+kW7f/0oKlJ5BRYoWjlPKxlIGhYjMi3F1 JceZ4BGC9ZOlSF3K/1oNWeVqsNyH0nTiX03r+kKzsT9lhGoGFgLBXlM1IsiAmJzocK8q PERq7/Q35djeoLDrIpHjCypejWgBfGBYFi+I0nP9Hqb98MpSREHPF6J8Bpb5fMgEUsAG /6XqKHug1/q/JAlCGL7OSAMTRyN2U4IQYSpVf0CbwUUF06edgGLMz/KzATDXSUlIhcMh 2vOQ== 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=C2RfFgyTIUJ3qaGRExBOoKJAnx9XXnZ037V3ZlmcCCM=; b=Ab0e9AkDG4meE5ecUs+lsGOZaUZ1XxcB8NNOUvnX5vZwLh/VOHTaqLq9dZiCxKYt2m 0EXMGfGg0nZWCjjkDKAq5BqvctaBzMEEFRMaJPuQoAoFCeSrU+tYto5gxkm/+aPmnTbg jKJJ2v9NwTHrB6bg47rxhKk5/X16lRq+FeJ00eRqQfHJAs90t3zGJYDu3cXEicC6MMLR 6WbXhAzqP13l9vtJm6fI1jNAxR9ThNq6epJgeV5R1+OrSCnEvA5rZCK8d5zZ+B0VTOzY 9YQAAeSpTIq5zpPJc8vS0uizy82AJSYxIYifOYcK/XzpI5sFZnKYP+x6I72MGe3DkapC PcCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=QFlpUWpi; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si26719801edr.407.2021.01.04.11.26.28; Mon, 04 Jan 2021 11:26:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=QFlpUWpi; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbhADTZ3 (ORCPT + 99 others); Mon, 4 Jan 2021 14:25:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbhADTZ3 (ORCPT ); Mon, 4 Jan 2021 14:25:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB3DAC061574; Mon, 4 Jan 2021 11:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=C2RfFgyTIUJ3qaGRExBOoKJAnx9XXnZ037V3ZlmcCCM=; b=QFlpUWpivLWqWvpuL2I15PLMxw 7nKICxUmiDcc00C2MhIGr+Io/a4yw/4C1kO4jAlrEeZReOPBLuXbloTDymSbT28RVrGBGEYLNJjw/ ZvVKzF3PIKsLntlBY5E7RvtrqOplF4d7sOCPPPy3EEH38km77z2moOurhk8V2UK4MQwKTbv89A7zk 9cJpReS46bwYG1cmQUVR4pQrQcGDMKBO+nR1touznhxH9nFzrWv4afWfoKGI7Be8qi2sgAocuFoqV fWls+Y2vl/0te40B94CZO2pnFLLvaRJ6zwR1CEBZaBcNzbmoMNbFVJHx4nJKSswxKBPhTDNKw7XDp wm86HhVA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kwVSz-000Sri-7A; Mon, 04 Jan 2021 19:24:35 +0000 Date: Mon, 4 Jan 2021 19:24:33 +0000 From: Matthew Wilcox To: Theodore Ts'o Cc: Andres Freund , linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: fallocate(FALLOC_FL_ZERO_RANGE_BUT_REALLY) to avoid unwritten extents? Message-ID: <20210104192433.GC22407@casper.infradead.org> References: <20201230062819.yinrrp6uwfegsqo3@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jan 04, 2021 at 02:17:05PM -0500, Theodore Ts'o wrote: > One thing to note is that there are some devices which support a write > zeros operation, but where it is *less* performant than actually > writing zeros via DMA'ing zero pages. Yes, that's insane. > Unfortunately, there are a insane devices out there.... We already have quirks to disable commands, in NVMe, SCSI and ATA. This sounds like another quirk to throw on the bonfire ("Yes, this device claims to support Write Zeroes, but don't use it"). Indeed, NVMe already has precisely this quirk, NVME_QUIRK_DISABLE_WRITE_ZEROES.