diff options
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 2102c20f7e98..2c7c082b8169 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -4656,6 +4656,8 @@ do_more: | |||
4656 | * with group lock held. generate_buddy look at | 4656 | * with group lock held. generate_buddy look at |
4657 | * them with group lock_held | 4657 | * them with group lock_held |
4658 | */ | 4658 | */ |
4659 | if (test_opt(sb, DISCARD)) | ||
4660 | ext4_issue_discard(sb, block_group, bit, count); | ||
4659 | ext4_lock_group(sb, block_group); | 4661 | ext4_lock_group(sb, block_group); |
4660 | mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); | 4662 | mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); |
4661 | mb_free_blocks(inode, &e4b, bit, count_clusters); | 4663 | mb_free_blocks(inode, &e4b, bit, count_clusters); |