Skip to content

btrfs: async discard follow up

Dennis Zhou linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12btrfs: calculate discard delay based on number of extentsfs/btrfs/ctree.h fs/btrfs/discard.c fs/btrfs/discard.h +2 more+88 -51 reply
2/12btrfs: add bps discard rate limit for async discardfs/btrfs/ctree.h fs/btrfs/discard.c fs/btrfs/sysfs.c+54 -21 reply
3/12btrfs: limit max discard size for async discardfs/btrfs/discard.h fs/btrfs/free-space-cache.c+37 -91 reply
4/12btrfs: make max async discard size tunablefs/btrfs/ctree.h fs/btrfs/discard.c fs/btrfs/discard.h +2 more+46 -81 reply
5/12btrfs: have multiple discard listsfs/btrfs/ctree.h fs/btrfs/discard.c fs/btrfs/discard.h +2 more+142 -240 replies
6/12btrfs: only keep track of data extents for async discardfs/btrfs/block-group.h fs/btrfs/discard.c+21 -20 replies
7/12btrfs: keep track of discard reuse statsfs/btrfs/ctree.h fs/btrfs/discard.c fs/btrfs/free-space-cache.c +1 more+58 -00 replies
8/12btrfs: add async discard headerfs/btrfs/discard.c+38 -00 replies
9/12btrfs: increase the metadata allowance for the free_space_cachefs/btrfs/free-space-cache.c+11 -150 replies
10/12btrfs: make smaller extents more likely to go into bitmapsfs/btrfs/free-space-cache.c+2 -20 replies
11/12btrfs: ensure removal of discardable_* in free_bitmap()fs/btrfs/free-space-cache.c+14 -00 replies
12/12btrfs: add correction to handle -1 edge case in async discardfs/btrfs/discard.c+21 -33 replies

Reviews trailers per patch

8 of 12 patches have a Reviewed-by or Acked-by.

PatchJosef Bacik
1/12R-b
2/12
3/12R-b
4/12
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] btrfs: async discard follow up

Hello,

Dave applied 1-12 from v6 [1]. This is a follow up cleaning up the remaining 10 patches adding 2 more to deal with a rare -1 [2] that I haven't quite figured out how to repro. This is also available at [3].

This series is on top of btrfs-devel#misc-next-with-discard-v6 0c7be920bd7d.

[1] https://lore.kernel.org/linux-btrfs/[email protected]/
[2] https://lore.kernel.org/linux-btrfs/[email protected]/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/dennis/misc.git/log/?h=async-discard

Dennis Zhou (12):
btrfs: calculate discard delay based on number of extents
btrfs: add bps discard rate limit for async discard
btrfs: limit max discard size for async discard
btrfs: make max async discard size tunable
btrfs: have multiple discard lists
btrfs: only keep track of data extents for async discard
btrfs: keep track of discard reuse stats
btrfs: add async discard header
btrfs: increase the metadata allowance for the free_space_cache
btrfs: make smaller extents more likely to go into bitmaps
btrfs: ensure removal of discardable_* in free_bitmap()
btrfs: add correction to handle -1 edge case in async discard

 fs/btrfs/block-group.h      |   7 +
 fs/btrfs/ctree.h            |  10 +-
 fs/btrfs/discard.c          | 258 +++++++++++++++++++++++++++++++++---
 fs/btrfs/discard.h          |  12 ++
 fs/btrfs/extent-tree.c      |   4 +-
 fs/btrfs/free-space-cache.c | 154 +++++++++++++++------
 fs/btrfs/free-space-cache.h |   2 +-
 fs/btrfs/sysfs.c            | 129 ++++++++++++++++++
 8 files changed, 519 insertions(+), 57 deletions(-)

Thanks,
Dennis