From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/3] Reduced impact of allocation failures during snapshot creation
Date: Tue, 10 Nov 2015 18:53:53 +0100 [thread overview]
Message-ID: <cover.1447177256.git.dsterba@suse.com> (raw)
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
next reply other threads:[~2015-11-10 17:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 17:53 David Sterba [this message]
2015-11-10 17:53 ` [PATCH 1/3] btrfs: do an allocation earlier during snapshot creation 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1447177256.git.dsterba@suse.com \
--to=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.