linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] 3 small cleanups for find_first_block_group
@ 2020-05-27  8:12 Johannes Thumshirn
  2020-05-27  8:12 ` [PATCH v2 1/3] btrfs: remove pointless out label in find_first_block_group Johannes Thumshirn
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Johannes Thumshirn @ 2020-05-27  8:12 UTC (permalink / raw)
  To: David Sterba; +Cc: linux-btrfs, Johannes Thumshirn

While trying to learn the Block Group code I've found some cleanup
possibilities for find_first_block_group().

Here's a proposal to make $ffbg a bit more easier to read by untangling the
gotos and if statements.

The patch set is based on misc-next from May 26 morning with 
HEAD 3f4a266717ed ("btrfs: split btrfs_direct_IO to read and write part")
and xfstests showed no regressions to the base misc-next in my test setup.

Changes to v1:
- Pass btrfs_path instead of leaf & slot to read_bg_from_eb (Nikolay)
- Don't comment about the size change (Nikolay)
- Add Nikolay's Reviewed-by's

Johannes Thumshirn (3):
  btrfs: remove pointless out label in find_first_block_group
  btrfs: get mapping tree directly from fsinfo in find_first_block_group
  btrfs: factor out reading of bg from find_frist_block_group

 fs/btrfs/block-group.c | 108 ++++++++++++++++++++++-------------------
 1 file changed, 58 insertions(+), 50 deletions(-)

-- 
2.24.1


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  8:12 [PATCH v2 0/3] 3 small cleanups for find_first_block_group Johannes Thumshirn
2020-05-27  8:12 ` [PATCH v2 1/3] btrfs: remove pointless out label in find_first_block_group Johannes Thumshirn
2020-05-27 13:06   ` David Sterba
2020-05-27 13:45     ` Johannes Thumshirn
2020-06-01 15:34       ` David Sterba
2020-05-27  8:12 ` [PATCH v2 2/3] btrfs: get mapping tree directly from fsinfo " Johannes Thumshirn
2020-05-27  8:12 ` [PATCH v2 3/3] btrfs: factor out reading of bg from find_frist_block_group Johannes Thumshirn
2020-05-29 14:25 ` [PATCH v2 0/3] 3 small cleanups for find_first_block_group Johannes Thumshirn
2020-06-01 15:48   ` 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).