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 c8b6a8808166..99ab428bcfa0 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -5035,11 +5035,11 @@ int ext4_trim_fs(struct super_block *sb, struct fstrim_range *range) | |||
5035 | */ | 5035 | */ |
5036 | first_cluster = 0; | 5036 | first_cluster = 0; |
5037 | } | 5037 | } |
5038 | range->len = trimmed * sb->s_blocksize; | ||
5039 | 5038 | ||
5040 | if (!ret) | 5039 | if (!ret) |
5041 | atomic_set(&EXT4_SB(sb)->s_last_trim_minblks, minlen); | 5040 | atomic_set(&EXT4_SB(sb)->s_last_trim_minblks, minlen); |
5042 | 5041 | ||
5043 | out: | 5042 | out: |
5043 | range->len = trimmed * sb->s_blocksize; | ||
5044 | return ret; | 5044 | return ret; |
5045 | } | 5045 | } |