All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Reduced impact of allocation failures during snapshot creation
@ 2015-11-10 17:53 David Sterba
  2015-11-10 17:53 ` [PATCH 1/3] btrfs: do an allocation earlier " David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Sterba @ 2015-11-10 17:53 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

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(-)

-- 
2.6.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-10 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-10 17:53 [PATCH 0/3] Reduced impact of allocation failures during snapshot creation David Sterba
2015-11-10 17:53 ` [PATCH 1/3] btrfs: do an allocation earlier " David Sterba
2015-11-10 17:54 ` [PATCH 2/3] btrfs: allocate root item at snapshot ioctl time David Sterba
2015-11-10 17:54 ` [PATCH 3/3] btrfs: preallocate path for snapshot creation at " David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.