]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Add ocfs2_trim_fs for SSD trim support.
authorTao Ma <boyu.mt@taobao.com>
Mon, 23 May 2011 02:36:43 +0000 (10:36 +0800)
committerJoel Becker <jlbec@evilplan.org>
Tue, 24 May 2011 06:37:18 +0000 (23:37 -0700)
commit60d8c7429cfcac986a907fda784953260b64753f
treeff1bde3fa17785519863f3880fecbb6b6fcd148a
parented00815ae3fbfed48489a2e340be123f554e9e6c
ocfs2: Add ocfs2_trim_fs for SSD trim support.

Add ocfs2_trim_fs to support trimming freed clusters in the
volume. A range will be given and all the freed clusters greater
than minlen will be discarded to the block layer.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h