]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f6feba40c8115c98ba6daee5b2c22b47d6fb6e6
tree96ffa11fb549ef059e167c3fc0afaabe48204763
parent99bc1727ad482bf85f26c320a09826f0a7c87b8d
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