diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-05-23 10:36:43 +0800 |
---|---|---|
committer | Joel Becker <jlbec@evilplan.org> | 2011-05-23 23:37:18 -0700 |
commit | e80de36d8dbff216a384e9204e54d59deeadf344 (patch) | |
tree | ff1bde3fa17785519863f3880fecbb6b6fcd148a /fs/ocfs2/alloc.h | |
parent | 69a60c4d177632bd56ae567dc0a082f7119b71c2 (diff) | |
download | talos-obmc-linux-e80de36d8dbff216a384e9204e54d59deeadf344.tar.gz talos-obmc-linux-e80de36d8dbff216a384e9204e54d59deeadf344.zip |
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>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 3bd08a03251c..ca381c584127 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h @@ -239,6 +239,7 @@ int ocfs2_find_leaf(struct ocfs2_caching_info *ci, struct buffer_head **leaf_bh); int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster); +int ocfs2_trim_fs(struct super_block *sb, struct fstrim_range *range); /* * Helper function to look at the # of clusters in an extent record. */ |