diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index b1e58b10425f..a7ec952093f8 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -943,6 +943,7 @@ static void __init_discard_policy(struct f2fs_sb_info *sbi, } else if (discard_type == DPOLICY_FSTRIM) { dpolicy->io_aware = false; } else if (discard_type == DPOLICY_UMOUNT) { + dpolicy->max_requests = UINT_MAX; dpolicy->io_aware = false; } }