Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp731321rdb; Fri, 6 Oct 2023 18:28:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiIgxljBhPgJSLTNhV7sGSOoNcJTqVXBSinbxTxH+iVHr6XiTnBY3yFPZUA5MUhRoBUzXa X-Received: by 2002:a17:903:2445:b0:1c7:4ab6:b3cc with SMTP id l5-20020a170903244500b001c74ab6b3ccmr12060541pls.54.1696642115097; Fri, 06 Oct 2023 18:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696642115; cv=none; d=google.com; s=arc-20160816; b=jGQzHP24tTcGrV75FfwmSuoH6Wm0iuiUdBhG/I0xIFgFY0cKxcKTmT3TxQEq9mnkFU +tNWE7WTDvID+lGdMGcGSnfto6NA+GWEEBVf6x1e/BslntAWHHWifM0ij2xKDtZd7NGm UOKRpv7zY7c1/AtQENdq6qlh/MKTD9ebzp+9uezKmoLY2XflQm1dCQYdFQ1Ae+hoHjeP lLjxsC0QAbLdId0k/iqof1PzWcLJ9K7vv7iIVdQ7GQ9UpmAA3TultFGG8YnoyNe6lxAB zAYlEwfRnro1g8ecH5l2pBNiOQfK0sztNecZ3VNAbIlA/HXZ9+Hz/AXho0P4CQiQqwcF rr2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=sPAOchZ3lviZQWz7F/yVzJ/5u6K9fS7pELXL8VtCc9c=; fh=LP/ElqP5atwyI2q2hCf+Eqqm/1Qm/oXEwaFb5LVgt4U=; b=mbudCmUCIkX6lS2G1z5RvXWZW069HJ5baXeIoTGNE1iIUPBjFUqqd8A2lHRcIkSf/Q 5hwKZNIoyNU5HHn7XOgDf7mkyJwlmlT565NnCxZU4moDY+D+01vAC3TPs83TsFqd2WEE PK4tTuHfcmcCdWUt0yR6yS8aP19wccRk1A4Gv7i5fzQv0rmKwuGf66eNi/UJko8b8//p 7IuzaOF0O4nuTAD+iPxFlL1aPDtw2lWGWn2gGfYfCJT3yb8RkBgrTj8q0xdXtABQkwHL KU2xc4UPa4SH01L4if8NRD2+n0E+ziXSUESKv8GAVFW27swjAt5bUSRSDi4+9DKtOIqC OOjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BB+jwWHP; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y8-20020a17090322c800b001c45291b6ebsi5161518plg.272.2023.10.06.18.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 18:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BB+jwWHP; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A80AB8042C36; Fri, 6 Oct 2023 18:28:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234010AbjJGB21 (ORCPT + 99 others); Fri, 6 Oct 2023 21:28:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234019AbjJGB20 (ORCPT ); Fri, 6 Oct 2023 21:28:26 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BB2C5 for ; Fri, 6 Oct 2023 18:28:24 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1c874b43123so23046935ad.2 for ; Fri, 06 Oct 2023 18:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696642104; x=1697246904; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sPAOchZ3lviZQWz7F/yVzJ/5u6K9fS7pELXL8VtCc9c=; b=BB+jwWHPZKoC+SFdcT4TIJ0MVh4GMwMAeh9vXdKr0exaDqj/uLEU5WfLtt/OytF56U cmIKL4nzncZ4Mlz/UWnu+96fR2gV33xPR1GhH+sCjipxEcrhIB2Qc1rkM505dMLdOif3 90XFavyzJ35MiqABFI9ylzog9/FqQvDspR9GI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696642104; x=1697246904; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sPAOchZ3lviZQWz7F/yVzJ/5u6K9fS7pELXL8VtCc9c=; b=OJVyiBzvbiW0WPZACETgy2xUG+yVc8+mM6bT5cWXC05VQZPmvfM92I/p5M8HSdvrY8 ClayqjjSFUIzzwzae9vCWjQt3hthdVlDfCOvzMhZM1SWB0iNQzEWgjNm0ns0wFSA35tg Sp/NcKmdJmp1+7yVoobb5n+Uhtv85Vi1EFJMvlZH5HTIQ8T2YHgxNpcUBpZrIdFxQkF3 1UxqXWcu+WBr0gFTJofsxsOqEv+IhsuF/As8oumoaZ6ue/kI5q37zn11lNvhI3Bk4m2M BcP5NkxtHjT+Kw347pbLc4+emmWUb1JHQMkqr6ZZKwZv72U2A3+7Ve45l5IlXextEFnT 201Q== X-Gm-Message-State: AOJu0Ywui93QJZpZNQDNE3rMc/uV53gDWI1NEUWJZoGKG+kaaiU9rRQ9 caX5hYotlBFJugXWME0DscL6YA== X-Received: by 2002:a17:903:228f:b0:1c7:66a4:27ba with SMTP id b15-20020a170903228f00b001c766a427bamr11470478plh.48.1696642104031; Fri, 06 Oct 2023 18:28:24 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:138c:8976:eb4a:a91c]) by smtp.gmail.com with UTF8SMTPSA id q13-20020a170902dacd00b001b8b2a6c4a4sm4575373plx.172.2023.10.06.18.28.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Oct 2023 18:28:23 -0700 (PDT) From: Sarthak Kukreti To: dm-devel@redhat.com, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Jens Axboe , Alasdair Kergon , Mike Snitzer , Christoph Hellwig , Brian Foster , Theodore Ts'o , Andreas Dilger , Bart Van Assche , "Darrick J. Wong" , Dave Chinner , Sarthak Kukreti Subject: [PATCH v8 0/5] Introduce provisioning primitives Date: Fri, 6 Oct 2023 18:28:12 -0700 Message-ID: <20231007012817.3052558-1-sarthakkukreti@chromium.org> X-Mailer: git-send-email 2.42.0.609.gbb76f46606-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 06 Oct 2023 18:28:31 -0700 (PDT) X-Spam-Level: ** Hi, This patch series is version 8 of the patch series to introduce block-level provisioning mechanism (original [1]), which is useful for provisioning space across thinly provisioned storage architectures (loop devices backed by sparse files, dm-thin devices, virtio-blk). This series has minimal changes over v7[2]. This patch series is rebased from the linux-dm/dm-6.5-provision-support [1] on to (cac405a3bfa2 Merge tag 'for-6.6-rc3-tag'). In addition, there's an additional patch to allow passing through an unshare intent via REQ_OP_PROVISION (suggested by Darrick in [4]). [1] Original: https://lore.kernel.org/lkml/20220915164826.1396245-1-sarthakkukreti@google.com/ [2] v7 (last series): https://lore.kernel.org/linux-fsdevel/20230518223326.18744-1-sarthakkukreti@chromium.org/ [3] linux-dm/dm-6.5-provision-suppport tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-6.5-provision-support (with the last two WIP patches for dm-thinpool dropped as per discussion with maintainers). [4] https://lore.kernel.org/linux-fsdevel/20230522163710.GA11607@frogsfrogsfrogs/ Changes from v7: - Drop dm-thinpool (will be independently developed with snapshot support) and dm-snapshot (will not be supported) from the series. - (By snitzer@kernel.org) Fixes for block device provision limits. - (Suggested by djwong@kernel.org) Add mechanism to pass unshare intent via REQ_OP_PROVISION Sarthak Kukreti (5): block: Don't invalidate pagecache for invalid falloc modes block: Introduce provisioning primitives loop: Add support for provision requests dm: Add block provisioning support block: Pass unshare intent via REQ_OP_PROVISION block/blk-core.c | 5 +++ block/blk-lib.c | 55 ++++++++++++++++++++++++++++++++ block/blk-merge.c | 18 +++++++++++ block/blk-settings.c | 19 +++++++++++ block/blk-sysfs.c | 9 ++++++ block/bounce.c | 1 + block/fops.c | 33 ++++++++++++++++---- drivers/block/loop.c | 59 ++++++++++++++++++++++++++++++++--- drivers/md/dm-crypt.c | 4 ++- drivers/md/dm-linear.c | 1 + drivers/md/dm-table.c | 23 ++++++++++++++ drivers/md/dm.c | 7 +++++ include/linux/bio.h | 6 ++-- include/linux/blk_types.h | 8 ++++- include/linux/blkdev.h | 17 ++++++++++ include/linux/device-mapper.h | 17 ++++++++++ 16 files changed, 268 insertions(+), 14 deletions(-) -- 2.42.0.609.gbb76f46606-goog