aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlei He2018-04-04 17:29:05 +0800
committerJaegeuk Kim2018-05-31 11:31:45 -0700
commit241b493d8fbda0ddbdcbd1e9be36c37b8a351281 (patch)
treef2a34fac0256b7a5f57cef4195033fab6b5b52cf
parent47cca3d62af20e1343cbd0a08b1f45e83892d82b (diff)
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: Yunlei He <heyunlei@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/segment.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}