LWN.net Logo

TRIM?

TRIM?

Posted Dec 12, 2012 13:32 UTC (Wed) by yann.morin.1998 (subscriber, #54333)
In reply to: TRIM? by neilbrown
Parent article: JFFS2, UBIFS, and the growth of flash storage

> When you read from a region that was TRIMed the result is either undefined or all-zeros, whereas when you read from a region that was mtd_erase()d, the result is all-ones.
> So it wouldn't really be useful to make mtd_erase() to TRIM. They do seem similar but they have quite different semantics.

What about combining your catch-erased-sections-and-return-0xFF with TRIMing the underlying storage (if it supports TRIMing)?

Regards,
Yann E. MORIN.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds