Support 'discard sectors' operation.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 5 Aug 2008 17:08:56 +0000 (18:08 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:01 +0000 (08:56 +0200)
commitfdc53971bce56d299cb5f1f06ecbff30b34cbaf2
tree96ffa11fb549ef059e167c3fc0afaabe48204763
parenteae9acd13a8d14b50c00a961fa959606f34bbd92
Support 'discard sectors' operation.

We can benefit from knowing that the file system no longer cares about
the contents of certain sectors, by throwing them away immediately and
then never having to garbage collect them, and using the extra free
space to make our operations more efficient. Do so.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/mtd/ftl.c