Skip to content

reiser4: discard support: "precise discard" aka padding of extents to erase unit boundaries.

Ivan Shapovalov reiserfs-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6reiser4: block_alloc: split block allocation accounting logic into separate functions for re-use.fs/reiser4/block_alloc.c+87 -520 replies
2/6reiser4: block_alloc, plugin/space/bitmap: add a method for "exact" block allocation.fs/reiser4/block_alloc.c fs/reiser4/block_alloc.h fs/reiser4/plugin/space/bitmap.c +2 more+120 -261 reply
3/6reiser4: iterate over extents in discard_atomfs/reiser4/blocknrlist.c fs/reiser4/discard.c fs/reiser4/discard.h +4 more+377 -300 replies
4/6reiser4: discard: don't be overly smart when gluing extents in discard_sorted_merged_extents().fs/reiser4/discard.c+2 -101 reply
5/6reiser4: blocknrlist: add operations blocknr_list_del() and blocknr_list_update_extent().fs/reiser4/blocknrlist.c fs/reiser4/txnmgr.h+32 -00 replies
6/6reiser4: discard: allocate extent paddings.fs/reiser4/discard.c+44 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] reiser4: discard support: "precise discard" aka padding of extents to erase unit boundaries.

So, this patchset uses your algorithm of padding/gluing extents to be discarded. I've added exact allocation primitives (is it what you've been talking about?), made the discard procedure allocate blocks of all paddings it performs and fixed an apparent bug in extent gluing which triggered the "edward-1635" assertion.

Edward Shishkin (1):
reiser4: iterate over extents in discard_atom

Ivan Shapovalov (5):
reiser4: block_alloc: split block allocation accounting logic into separate functions for re-use.
reiser4: block_alloc, plugin/space/bitmap: add a method for "exact" block allocation.
reiser4: discard: don't be overly smart when gluing extents in discard_sorted_merged_extents().
reiser4: blocknrlist: add operations blocknr_list_del() and blocknr_list_update_extent().
reiser4: discard: allocate extent paddings.

 fs/reiser4/block_alloc.c                  | 175 +++++++++----
 fs/reiser4/block_alloc.h                  |   3 +
 fs/reiser4/blocknrlist.c                  |  38 +++
 fs/reiser4/discard.c                      | 410 +++++++++++++++++++++++++++---
 fs/reiser4/discard.h                      |   8 +-
 fs/reiser4/forward.h                      |   1 +
 fs/reiser4/init_super.c                   |   4 +
 fs/reiser4/plugin/space/bitmap.c          |  94 +++++--
 fs/reiser4/plugin/space/bitmap.h          |   3 +
 fs/reiser4/plugin/space/space_allocator.h |  10 +-
 fs/reiser4/super.h                        |   4 +
 fs/reiser4/txnmgr.h                       |   6 +
 12 files changed, 647 insertions(+), 109 deletions(-)
Signature · 1 line
2.1.3