This needs your version of discard algorithm, because blocks inside extents of discard set are now marked as allocated. BTW, have you dropped the case with erase unit size < block size? This is probably OK, but configurations with nonzero alignments are then broken. Not worth handling these, I think, but nevertheless a warning could be useful ;) Ivan Shapovalov (2): reiser4: discard support: perform discards and deallocations after writing logs. reiser4: discard support: proof-of-concept for "discard before dealloc". fs/reiser4/block_alloc.c | 48 +++++++++++++++++++------------------- fs/reiser4/discard.c | 60 ++++++++++++++++++++++++++++++++++-------------- fs/reiser4/discard.h | 4 +++- fs/reiser4/txnmgr.c | 35 ---------------------------- fs/reiser4/txnmgr.h | 13 ++--------- fs/reiser4/wander.c | 3 ++- 6 files changed, 73 insertions(+), 90 deletions(-) -- 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html