diff options
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d47a80ec231d..21ee30b86de5 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -4860,7 +4860,7 @@ int ext4_trim_fs(struct super_block *sb, struct fstrim_range *range) | |||
4860 | if (len >= EXT4_BLOCKS_PER_GROUP(sb)) | 4860 | if (len >= EXT4_BLOCKS_PER_GROUP(sb)) |
4861 | len -= (EXT4_BLOCKS_PER_GROUP(sb) - first_block); | 4861 | len -= (EXT4_BLOCKS_PER_GROUP(sb) - first_block); |
4862 | else | 4862 | else |
4863 | last_block = len; | 4863 | last_block = first_block + len; |
4864 | 4864 | ||
4865 | if (e4b.bd_info->bb_free >= minlen) { | 4865 | if (e4b.bd_info->bb_free >= minlen) { |
4866 | cnt = ext4_trim_all_free(sb, &e4b, first_block, | 4866 | cnt = ext4_trim_all_free(sb, &e4b, first_block, |