From: Nikolay Borisov <nborisov@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: dsterba@suse.com, clm@fb.com, jeffm@suse.com,
Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH 0/2] space_info update/creation refactoring
Date: Tue, 9 May 2017 11:34:17 +0300 [thread overview]
Message-ID: <1494318859-7555-1-git-send-email-nborisov@suse.com> (raw)
Here are two patches which aim to disentangle and make more explicit
the situation when a space_info has to be created VS when space_info values
are being updated.
It survived multiple xfstest runs with additional ASSERTs which I have removed
in this posting. One such assert which didn't trigger was in
btrfs_make_block_group. Despite that I haven't changed the logic of the code
to try and allocate a space_info if one can't be found. However, I'd like
someone more knowledgble of the internals of bg lifecycle to tell me if
in fact btrfs_make_block_group can be called with flags for non-existant
struct space_info.
Nikolay Borisov (2):
btrfs: Separate space_info create/update
btrfs: Refactor update_space_info
fs/btrfs/extent-tree.c | 172 +++++++++++++++++++++----------------------------
1 file changed, 73 insertions(+), 99 deletions(-)
--
2.7.4
next reply other threads:[~2017-05-09 8:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 8:34 Nikolay Borisov [this message]
2017-05-09 8:34 ` [PATCH 1/2] btrfs: Separate space_info create/update Nikolay Borisov
2017-05-17 13:50 ` Jeff Mahoney
2017-05-09 8:34 ` [PATCH 2/2] btrfs: Refactor update_space_info Nikolay Borisov
2017-05-17 13:50 ` Jeff Mahoney
2017-06-01 14:46 ` [PATCH 0/2] space_info update/creation refactoring David Sterba
2017-06-01 14:59 ` 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=1494318859-7555-1-git-send-email-nborisov@suse.com \
--to=nborisov@suse.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=jeffm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).