Skip to content

reiser4: iterate over extents in discard_atom

Edward Shishkin reiserfs-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 0/1] reiser4: iterate over extents in discard_atom

In this version we support all erase units (not only ones, which are powers of 2). I put a restriction 1MiB for erase units just to filter possible garbage. We can increase this boundary, if needed.
Alignments with (bdev_discard_alignment() % s_blocksize != 0) are still unsupported.

I have added mount options to specify erase unit and alignment in bytes. This is only for debugging purposes (to emulate real situations). Usage is the following:

mount /dev/xxx -o discard,discard.unit=yyy,discard.offset=zzz /mnt

Thanks,
Edward.