diff options
author | Yunlei He <heyunlei@huawei.com> | 2018-04-04 17:29:05 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-31 11:31:45 -0700 |
commit | 241b493d8fbda0ddbdcbd1e9be36c37b8a351281 (patch) | |
tree | f2a34fac0256b7a5f57cef4195033fab6b5b52cf /fs/f2fs/segment.c | |
parent | 47cca3d62af20e1343cbd0a08b1f45e83892d82b (diff) | |
download | linux-241b493d8fbda0ddbdcbd1e9be36c37b8a351281.tar.bz2 |
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>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 1 |
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; } } |