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)
commite80de36d8dbff216a384e9204e54d59deeadf344
treeff1bde3fa17785519863f3880fecbb6b6fcd148a
parent69a60c4d177632bd56ae567dc0a082f7119b71c2
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