projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47cca3d
)
f2fs: issue all big range discards in umount process
author
Yunlei He
<heyunlei@huawei.com>
Wed, 4 Apr 2018 09:29:05 +0000
(17:29 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:45 +0000
(11:31 -0700)
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>
fs/f2fs/segment.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index b1e58b10425fe0f2deaa20ec552cff35792f3494..a7ec952093f8c2f62496402872cb62ee2bebfc2f 100644
(file)
--- 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;
}
}