Here's my current btrfs patchset
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | Btrfs: enable removal of second disk with raid1 metadatafs/ | +5 | 0 replies | |
| 2/20 | Btrfs: initialize new bitmaps' listfs/ | +1 | 7 replies | |
| 3/20 | Btrfs: fix comment typofs/ | +1 | 0 replies | |
| 4/20 | Btrfs: reset cluster's max_size when creating bitmap clusterfs/ | +1 | 0 replies | |
| 5/20 | Btrfs: start search for new cluster at the beginning of the block groupfs/ | +2 | 0 replies | |
| 6/20 | Btrfs: skip block groups without enough space for a clusterfs/ | +1 | 0 replies | |
| 7/20 | Btrfs: don't set up allocation result twicefs/ | +0 | 0 replies | |
| 8/20 | Btrfs: try to allocate from cluster even at LOOP_NO_EMPTY_SIZEfs/ | +18 | 0 replies | |
| 9/20 | Btrfs: skip allocation attempt from empty clusterfs/ | +3 | 0 replies | |
| 10/20 | Btrfs: report reason for failed relocationfs/ | +8 | 0 replies | |
| 11/20 | Btrfs: note when a bitmap is skipped because its list is in usefs/ | +7 | 0 replies | |
| 12/20 | Btrfs: introduce verbose debug mode for patched clustered allocation recoveryfs/ | +147 | 0 replies | |
| 13/20 | Btrfs: revamp clustered allocation logicfs/ | +49 | 0 replies | |
| 14/20 | Btrfs: introduce option to rebalance only metadatafs/ fs/ fs/ +1 more | +34 | 0 replies | |
| 15/20 | Btrfs: activate allocation debuggingfs/ | +3 | 0 replies | |
| 16/20 | Btrfs: try cluster but don't advance in search listfs/ | +33 | 0 replies | |
| 17/20 | Btrfs: introduce -o cluster and -o noclusterfs/ fs/ fs/ | +17 | 0 replies | |
| 18/20 | Btrfs: add -o mincluster optionfs/ fs/ fs/ | +27 | 0 replies | |
| 19/20 | Btrfs: log when a bitmap is rejected for a clusterfs/ | +10 | 0 replies | |
| 20/20 | Btrfs: don't waste metadata block groups for clustered allocationfs/ | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/20] Here's my current btrfs patchset
The first 11 patches are relatively simple fixes or improvements that I suppose go could make it even in 3.2 (02 is particularly essential to avoid progressive performance degradation and metadata space waste in the default clustered allocation strategy).
Patch 12 and its complement 15, and also 19, are debugging aids that helped me track down the problem fixed in 02.
Patch 13 is a revised version of the larger-clusters patch I posted before, that adds a microoptimization to the bitmap computations to the earlier version.
Patches 14 to 20 are probably not suitable for inclusion, and are provided only for reference, although I'm still undecided on 16: it seems to me to make sense to stick to the ordered list and index instead of jumping to the current cluster's block group, but it may also make sense performance-wise to start at the current cluster and advance from there. We still do that, as long as we find a cluster to begin with, but I'm yet to double check on the race that causes multiple subsequent releases/creation of clusters under heavy load. I'm sure I saw it, and I no longer do, but now I'm no longer sure whether this is the patch that fixed it, or about the details of how we came about that scenario.
Patches 14, 17, 18 and 20 were posted before, and I'm probably dropping them from future patchsets unless I find them to be still useful.
Alexandre Oliva (20):
Btrfs: enable removal of second disk with raid1 metadata
Btrfs: initialize new bitmaps' list
Btrfs: fix comment typo
Btrfs: reset cluster's max_size when creating bitmap cluster
Btrfs: start search for new cluster at the beginning of the block
group
Btrfs: skip block groups without enough space for a cluster
Btrfs: don't set up allocation result twice
Btrfs: try to allocate from cluster even at LOOP_NO_EMPTY_SIZE
Btrfs: skip allocation attempt from empty cluster
Btrfs: report reason for failed relocation
Btrfs: note when a bitmap is skipped because its list is in use
Btrfs: introduce verbose debug mode for patched clustered allocation
recovery
Btrfs: revamp clustered allocation logic
Btrfs: introduce option to rebalance only metadata
Btrfs: activate allocation debugging
Btrfs: try cluster but don't advance in search list
Btrfs: introduce -o cluster and -o nocluster
Btrfs: add -o mincluster option
Btrfs: log when a bitmap is rejected for a cluster
Btrfs: don't waste metadata block groups for clustered allocation
fs/btrfs/ctree.h | 3 +- fs/btrfs/extent-tree.c | 297 ++++++++++++++++++++++++++++++++----------- fs/btrfs/free-space-cache.c | 132 ++++++++++--------- fs/btrfs/ioctl.c | 2 + fs/btrfs/ioctl.h | 3 + fs/btrfs/relocation.c | 8 + fs/btrfs/super.c | 31 ++++- fs/btrfs/volumes.c | 39 +++++- fs/btrfs/volumes.h | 1 + 9 files changed, 369 insertions(+), 147 deletions(-)
Signature · 1 line
1.7.4.4