f2fs: run fstrim asynchronously if runtime discard is on
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 17:20:48 +0000 (10:20 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 17:20:48 +0000 (10:20 -0700)
commite555da9f31210d2b62805cd7faf29228af7c3cfb
tree26edbabfc941ff45f700af25baf92c7daa3fb2be
parentcba608493d3d5d54da4b7dd67868f88c43dfbd35
f2fs: run fstrim asynchronously if runtime discard is on

We don't need to wait for whole bunch of discard candidates in fstrim, since
runtime discard will issue them in idle time.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c