Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3550520rwb; Tue, 20 Sep 2022 01:00:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5aXjisPsG2Q1wYLdKnlohIm4cz0KkONz3Kz7uTWpRND4y4L6pfFf2CD4XghiHpj2qhwEMg X-Received: by 2002:a17:906:2699:b0:781:a473:9791 with SMTP id t25-20020a170906269900b00781a4739791mr2798425ejc.644.1663660844723; Tue, 20 Sep 2022 01:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663660844; cv=none; d=google.com; s=arc-20160816; b=RCgIQy/cReAeEJu+X1Nc7SEKB+ooAFMpbvPxhTI3pUCdxkRDhBCnUgKA9m+dfGghH5 5Dt4qDYlAhsMtkbhVP/y0Wx9hqGmSvC9GZA6mkYLbP532dOEYOwKGjhpCyGWDTEuPtVk QxQVYor0hTezM+a9v0ciIVnyy916qP5g92U08lAmQqwiJ5XhHeh/iFVezVHO/DWGaSJv Obx6rY0YAvdunRY+xl5LK6aH6sKTXM97h50TopWiZXRIT2GRdpMSq9YDniaGWfFcduLy ziongpNWM66kuzCaPC6oboYDMi9Sz7DVBMdWnzmQP0dYfmX7Tc91al0Gniz+lcLU+Ot3 0++w== 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=AU0mZCMIx8JARy0byW2BmRzgYXSYzSXxAhWcU08IaqY=; b=H4GWDPYjQUG/nDk2l9oKBawJx22t5Sm2UAmx7Xllv0DfLofA4XdyjM2g0inyTi6ycD Ns3txpx/nA+MxFztQlZQUvdFN5Zt+Bcvjz0+peQq9k+39SslCyGHKtBJL6CWRvRORyYc Jn4ePHTaADE0TSSspe+2InXHaSAckwL7GQqK+FDsI0Jfe3ccQc3YGlGQy6usj1r2nWqh 3JhO99InThkc1U4TGKa14vtWX1tp5h0Wdyu6d+nyATynb57ecMCZ6YeCMWwtNhuRvmqH ADfPpBdYyEYxS+WgAXRF7Bx14rqeqTh+vYP6YjneV+xTRaLZpHsGe5Ma8PCv+DN2sRxK PqiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=aUezXLcV; 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 dn10-20020a17090794ca00b0077a341b88fbsi921596ejc.191.2022.09.20.01.00.17; Tue, 20 Sep 2022 01:00: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=aUezXLcV; 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 S230471AbiITHuf (ORCPT + 99 others); Tue, 20 Sep 2022 03:50:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbiITHt7 (ORCPT ); Tue, 20 Sep 2022 03:49:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEDB9219D; Tue, 20 Sep 2022 00:49:14 -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=AU0mZCMIx8JARy0byW2BmRzgYXSYzSXxAhWcU08IaqY=; b=aUezXLcVpUDpj+rBGwR2e2Dq+j +m8n/y4046APNRMEDTF0ZqaDkAxglTlVUNTJr9E1Z6iC226V1Bog1WEQ2+K4ikDCcQlgIfO79QYEn goQtBRPP+NXjgTSijBjOyUanFbCeVbhd0zVD0jL5AzO3eoXRAf7sgibPwBwjIJpBRSuo6MlMOJVkH 45Z1TPzd/6ND3EgH8tHfjOOybk9MqFcjdvPfa8IIrKATJFRTJJ/ua6OyNsUaM6kt5wiagvMuJ7Cav WHJ9MvPeN6mIa0F7Nz1cmXZ0IlQ7xW2U8RmCkN9IPpyqtDS+bJksjLZ3l0EsO/cbt4ePE8hMqOnbn EqnTWtdQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaY0H-001Ung-4F; Tue, 20 Sep 2022 07:49:13 +0000 Date: Tue, 20 Sep 2022 00:49:13 -0700 From: Christoph Hellwig To: Sarthak Kukreti Cc: dm-devel@redhat.com, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jens Axboe , "Michael S . Tsirkin" , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , Alasdair Kergon , Mike Snitzer , Theodore Ts'o , Andreas Dilger , Bart Van Assche , Daniil Lunev , Evan Green , Gwendal Grignou Subject: Re: [PATCH RFC 4/8] fs: Introduce FALLOC_FL_PROVISION Message-ID: References: <20220915164826.1396245-1-sarthakkukreti@google.com> <20220915164826.1396245-5-sarthakkukreti@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220915164826.1396245-5-sarthakkukreti@google.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 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 Thu, Sep 15, 2022 at 09:48:22AM -0700, Sarthak Kukreti wrote: > From: Sarthak Kukreti > > FALLOC_FL_PROVISION is a new fallocate() allocation mode that > sends a hint to (supported) thinly provisioned block devices to > allocate space for the given range of sectors via REQ_OP_PROVISION. So, how does that "provisioning" actually work in todays world where storage is usually doing out of place writes in one or more layers, including the flash storage everyone is using. Does it give you one write? And unlimited number? Some undecided number inbetween? How is it affected by write zeroes to that range or a discard?