|
@@ -587,7 +587,7 @@ static void f2fs_put_super(struct super_block *sb)
|
|
|
/* be sure to wait for any on-going discard commands */
|
|
/* be sure to wait for any on-going discard commands */
|
|
|
f2fs_wait_discard_bios(sbi);
|
|
f2fs_wait_discard_bios(sbi);
|
|
|
|
|
|
|
|
- if (!sbi->discard_blks) {
|
|
|
|
|
|
|
+ if (f2fs_discard_en(sbi) && !sbi->discard_blks) {
|
|
|
struct cp_control cpc = {
|
|
struct cp_control cpc = {
|
|
|
.reason = CP_UMOUNT | CP_TRIMMED,
|
|
.reason = CP_UMOUNT | CP_TRIMMED,
|
|
|
};
|
|
};
|