f2fs: issue all big range discards in umount process
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/segment.c | 1 + 1 file changed, 1 insertion(+)
fs/f2fs/segment.c +1 -0
@@ -1730,6 +1730,7 @@ void init_discard_policy(struct discard_policy *dpolicy, }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; } }
Signature · 6 lines
1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 4 lines · Yunlei He
This patch modify
max_requeststoUINT_MAX, to issue all big range discards in umount.Signed-off-by Yunlei He <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot