Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15cc7ac4 authored by Yunlei He's avatar Yunlei He Committed by Jaegeuk Kim
Browse files

f2fs: issue all big range discards in umount process



This patch modify max_requests to UINT_MAX, to issue
all big range discards in umount.

Signed-off-by: default avatarYunlei He <heyunlei@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 64130200
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1025,6 +1025,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;
	}
}