Skip to content

reiser4: discard support: initial implementation.

Ivan Shapovalov reiserfs-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 18 repliesIn review
  2. v5 RFC4 patches 4 repliesSuperseded
  3. v4 RFC4 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 RFC5 patches0 repliesSuperseded
v2 RFC5 patches3 repliesSuperseded
v1 RFC1 patch1 replySuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5reiser4: make space_allocator's check_blocks() reusable.fs/reiser4/block_alloc.c fs/reiser4/block_alloc.h fs/reiser4/plugin/space/bitmap.c +3 more+72 -540 replies
2/5reiser4: add an implementation of "block lists", splitted off the discard code.fs/reiser4/Makefile fs/reiser4/blocknrlist.c fs/reiser4/forward.h +1 more+332 -00 replies
3/5reiser4: discard support: initial implementation using linked lists.fs/reiser4/Makefile fs/reiser4/block_alloc.c fs/reiser4/dformat.h +7 more+440 -2028 replies
4/5reiser4: blocknr_list: use kmem_cache instead of kmalloc for allocating entries.fs/reiser4/blocknrlist.c fs/reiser4/super_ops.c fs/reiser4/txnmgr.h+37 -30 replies
5/5reiser4: blocknr_set: use kmem_cache instead of kmalloc for allocating entries.fs/reiser4/blocknrset.c fs/reiser4/super_ops.c fs/reiser4/txnmgr.h+40 -30 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCHv6 0/5] reiser4: discard support: initial implementation.

v1: - initial implementation (patches 1, 2)

v2: - cleanup, fixes discovered in debug mode
- saner logging
- assertions
- enablement of discard through mount option

v3: - fixed the extent merge loop in discard_atom()

v4: - squashed fix-ups into the main patch (with exception of reiser4_debug())
- fixed bug in usage of division ops discovered while building on ARM

v5: - squashed mount option into the main patch
- refactor based on discussion (see commit msg)
- splitted off blocknr_list code
- replaced ->discard_set with ->delete_set and ->aux_delete_set

v6: - actualized in-code comments
- removed uber-verbose debug statements
- fixed code-to-patch mapping
- moved blocknrlist and blocknrset to kmem_cache instead of kmalloc/kfree (in a separate commit for ease of reviewing)
- dropped the RFC label

Ivan Shapovalov (5):
reiser4: make space_allocator's check_blocks() reusable.
reiser4: add an implementation of "block lists", splitted off the discard code.
reiser4: discard support: initial implementation using linked lists.
reiser4: blocknr_list: use kmem_cache instead of kmalloc for allocating entries.
reiser4: blocknr_set: use kmem_cache instead of kmalloc for allocating entries.

 fs/reiser4/Makefile                       |   2 +
 fs/reiser4/block_alloc.c                  |  48 +++--
 fs/reiser4/block_alloc.h                  |  14 +-
 fs/reiser4/blocknrlist.c                  | 336 ++++++++++++++++++++++++++++++
 fs/reiser4/blocknrset.c                   |  34 ++-
 fs/reiser4/dformat.h                      |   2 +
 fs/reiser4/discard.c                      | 216 +++++++++++++++++++
 fs/reiser4/discard.h                      |  31 +++
 fs/reiser4/forward.h                      |   1 +
 fs/reiser4/init_super.c                   |   2 +
 fs/reiser4/plugin/space/bitmap.c          |  84 +++++---
 fs/reiser4/plugin/space/bitmap.h          |   2 +-
 fs/reiser4/plugin/space/space_allocator.h |   4 +-
 fs/reiser4/super.h                        |   4 +-
 fs/reiser4/super_ops.c                    |  14 ++
 fs/reiser4/txnmgr.c                       | 125 ++++++++++-
 fs/reiser4/txnmgr.h                       |  67 +++++-
 fs/reiser4/znode.c                        |   9 +-
 18 files changed, 918 insertions(+), 77 deletions(-)
 create mode 100644 fs/reiser4/blocknrlist.c
 create mode 100644 fs/reiser4/discard.c
 create mode 100644 fs/reiser4/discard.h
Signature · 1 line
2.0.0