--- fs/reiser4/super_ops.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/reiser4/super_ops.c b/fs/reiser4/super_ops.c index d232f30..f4cf0ff 100644 --- a/fs/reiser4/super_ops.c +++ b/fs/reiser4/super_ops.c @@ -481,7 +481,7 @@ static int reiser4_show_options(struct seq_file *m, struct dentry *dentry) int reiser4_trim_fs(struct super_block *super, struct fstrim_range* range) { reiser4_blocknr_hint hint; - reiser4_block_nr start, end, len, minlen, discarded_count = 0; + reiser4_block_nr start, end, len, discarded_count = 0; reiser4_context *ctx; txn_atom *atom; int ret, finished = 0; @@ -495,11 +495,11 @@ int reiser4_trim_fs(struct super_block *super, struct fstrim_range* range) */ hint.blk = range->start >> super->s_blocksize_bits; hint.max_dist = range->len >> super->s_blocksize_bits; + hint.min_len = range->minlen >> super->s_blocksize_bits; hint.block_stage = BLOCK_GRABBED; hint.forward = 1; end = hint.blk + hint.max_dist; - minlen = range->minlen >> super->s_blocksize_bits; /* * We will perform the process in iterations in order not to starve @@ -532,7 +532,6 @@ int reiser4_trim_fs(struct super_block *super, struct fstrim_range* range) while (ctx->grabbed_blocks != 0) { /* * Allocate no more than is grabbed. - * FIXME: use minlen. */ len = ctx->grabbed_blocks; ret = reiser4_alloc_blocks(&hint, &start, &len, 0 /* flags */); -- 2.0.4 -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html