summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.h
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-05-23 10:36:43 +0800
committerJoel Becker <jlbec@evilplan.org>2011-05-23 23:37:18 -0700
commite80de36d8dbff216a384e9204e54d59deeadf344 (patch)
treeff1bde3fa17785519863f3880fecbb6b6fcd148a /fs/ocfs2/alloc.h
parent69a60c4d177632bd56ae567dc0a082f7119b71c2 (diff)
downloadop-kernel-dev-e80de36d8dbff216a384e9204e54d59deeadf344.zip
op-kernel-dev-e80de36d8dbff216a384e9204e54d59deeadf344.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h
index 3bd08a0..ca381c5 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.
*/
OpenPOWER on IntegriCloud