Skip to content

Reduced impact of allocation failures during snapshot creation

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: do an allocation earlier during snapshot creationfs/btrfs/ioctl.c+9 -110 replies
2/3btrfs: allocate root item at snapshot ioctl timefs/btrfs/ioctl.c fs/btrfs/transaction.c fs/btrfs/transaction.h+13 -60 replies
3/3btrfs: preallocate path for snapshot creation at ioctl timefs/btrfs/ioctl.c fs/btrfs/transaction.c fs/btrfs/transaction.h+8 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Reduced impact of allocation failures during snapshot creation

Here's an improvement in allocation of temporary structures during snaphost creation, namely the root_item. The allocation is moved to the ioctl call, so it will fail early and not during the transaction commit. I've once hit it in practice.

It's aimed for 4.5 dev cycle and can be pulled from

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git dev/prealloc-subvol

David Sterba (3):
btrfs: do an allocation earlier during snapshot creation
btrfs: allocate root item at snapshot ioctl time
btrfs: preallocate path for snapshot creation at ioctl time

 fs/btrfs/ioctl.c       | 31 ++++++++++++++++++++-----------
 fs/btrfs/transaction.c | 18 +++++++-----------
 fs/btrfs/transaction.h |  2 ++
 3 files changed, 29 insertions(+), 22 deletions(-)
Signature · 1 line
2.6.2