linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] space_info update/creation refactoring
@ 2017-05-09  8:34 Nikolay Borisov
  2017-05-09  8:34 ` [PATCH 1/2] btrfs: Separate space_info create/update Nikolay Borisov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nikolay Borisov @ 2017-05-09  8:34 UTC (permalink / raw)
  To: linux-btrfs; +Cc: dsterba, clm, jeffm, Nikolay Borisov

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


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

end of thread, other threads:[~2017-06-01 15:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09  8:34 [PATCH 0/2] space_info update/creation refactoring Nikolay Borisov
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

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