From: Andreas Rohner Date: Thu, 3 Apr 2014 21:50:29 +0000 (-0700) Subject: nilfs2: add nilfs_sufile_trim_fs to trim clean segs X-Git-Tag: v3.15-rc1~106^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82e11e857be3ffd2a0a952c9db8aa2379e2b9e44;p=pandora-kernel.git nilfs2: add nilfs_sufile_trim_fs to trim clean segs Add nilfs_sufile_trim_fs(), which takes an fstrim_range structure and calls blkdev_issue_discard for every clean segment in the specified range. The range is truncated to file system block boundaries. Signed-off-by: Andreas Rohner Signed-off-by: Ryusuke Konishi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed