diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-05-22 22:36:43 -0400 |
---|---|---|
committer | Joel Becker <jlbec@evilplan.org> | 2011-05-24 02:37:18 -0400 |
commit | e80de36d8dbff216a384e9204e54d59deeadf344 (patch) | |
tree | ff1bde3fa17785519863f3880fecbb6b6fcd148a /fs/ocfs2/alloc.h | |
parent | 69a60c4d177632bd56ae567dc0a082f7119b71c2 (diff) |
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, | |||
239 | struct buffer_head **leaf_bh); | 239 | struct buffer_head **leaf_bh); |
240 | int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster); | 240 | int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster); |
241 | 241 | ||
242 | int ocfs2_trim_fs(struct super_block *sb, struct fstrim_range *range); | ||
242 | /* | 243 | /* |
243 | * Helper function to look at the # of clusters in an extent record. | 244 | * Helper function to look at the # of clusters in an extent record. |
244 | */ | 245 | */ |