Re: [dm-devel] [PATCH v8 5/5] block: Pass unshare intent via REQ_OP_PROVISION

2023-10-08 Thread Dave Chinner
On Fri, Oct 06, 2023 at 06:28:17PM -0700, Sarthak Kukreti wrote: > Allow REQ_OP_PROVISION to pass in an extra REQ_UNSHARE bit to > annotate unshare requests to underlying layers. Layers that support > FALLOC_FL_UNSHARE will be able to use this as an indicator of which > fallocate() mode to use. >

Re: [dm-devel] [PATCH v8 3/5] loop: Add support for provision requests

2023-10-08 Thread Dave Chinner
On Fri, Oct 06, 2023 at 06:28:15PM -0700, Sarthak Kukreti wrote: > Add support for provision requests to loopback devices. > Loop devices will configure provision support based on > whether the underlying block device/file can support > the provision request and upon receiving a provision bio, >

[dm-devel] [RFC PATCH 6/5] xfs: detect block devices requiring provisioning

2023-10-08 Thread Dave Chinner
From: Dave Chinner Block device provisioning detection infrastructure. Signed-off-by: Dave Chinner --- fs/xfs/xfs_buf.c | 2 ++ fs/xfs/xfs_buf.h | 1 + fs/xfs/xfs_mount.h | 11 ++- fs/xfs/xfs_super.c | 4 4 files changed, 17 insertions(+), 1 deletion(-) diff --git

[dm-devel] [RFC PATCH 7/5] xfs: add block device provisioning for fallocate

2023-10-08 Thread Dave Chinner
From: Dave Chinner Provision space in the block device for preallocated file space when userspace asks for it. Make sure to do this outside of transaction context so it can fail without causing a filesystem shutdown. XXX: async provisioning submission/completion interface would be really useful

Re: [dm-devel] [PATCH v8 0/5] Introduce provisioning primitives

2023-10-08 Thread Dave Chinner
On Fri, Oct 06, 2023 at 06:28:12PM -0700, Sarthak Kukreti wrote: > 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