All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] cleanup __btrfs_map_block
@ 2017-03-14 20:33 Liu Bo
  2017-03-14 20:33 ` [PATCH v2 1/7] Btrfs: create a helper for getting chunk map Liu Bo
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Liu Bo @ 2017-03-14 20:33 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba, Qu Wenruo

This is attempting to make __btrfs_map_block less scary :)

The major changes are

1) split operations for discard out of __btrfs_map_block and we don't copy
discard operations for the target device of dev replace since they're not
as important as writes.

2) put dev replace stuff into helpers since they're basically
self-independant.

v2:
- add length to error handling output.
- use helper get_chunk_map to simplify the code.

Liu Bo (7):
  Btrfs: create a helper for getting chunk map
  Btrfs: separate DISCARD from __btrfs_map_block
  Btrfs: introduce a function to get extra mirror from replace
  Btrfs: handle operations for device replace separately
  Btrfs: do not add extra mirror when dev_replace target dev is not
    available
  Btrfs: helper for ops that requires full stripe
  Btrfs: convert BUG_ON to WARN_ON

 fs/btrfs/extent_io.c |   3 +-
 fs/btrfs/volumes.c   | 807 +++++++++++++++++++++++++++------------------------
 fs/btrfs/volumes.h   |   2 +-
 3 files changed, 428 insertions(+), 384 deletions(-)

-- 
2.5.5


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

end of thread, other threads:[~2017-03-15 18:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14 20:33 [PATCH v2 0/7] cleanup __btrfs_map_block Liu Bo
2017-03-14 20:33 ` [PATCH v2 1/7] Btrfs: create a helper for getting chunk map Liu Bo
2017-03-15  0:57   ` Qu Wenruo
2017-03-15  2:27     ` Liu Bo
2017-03-15  2:51       ` Qu Wenruo
2017-03-14 20:33 ` [PATCH v2 2/7] Btrfs: separate DISCARD from __btrfs_map_block Liu Bo
2017-03-14 20:33 ` [PATCH v2 3/7] Btrfs: introduce a function to get extra mirror from replace Liu Bo
2017-03-14 20:33 ` [PATCH v2 4/7] Btrfs: handle operations for device replace separately Liu Bo
2017-03-14 20:33 ` [PATCH v2 5/7] Btrfs: do not add extra mirror when dev_replace target dev is not available Liu Bo
2017-03-14 20:34 ` [PATCH v2 6/7] Btrfs: helper for ops that requires full stripe Liu Bo
2017-03-14 20:34 ` [PATCH v2 7/7] Btrfs: convert BUG_ON to WARN_ON Liu Bo
2017-03-15 13:07 ` [PATCH v2 0/7] cleanup __btrfs_map_block David Sterba
2017-03-15 18:08   ` Liu Bo

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.