FROMLIST: 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@google.com>
Tue, 5 Jun 2018 21:01:44 +0000 (14:01 -0700)
commit62c30af186965bc5bde73223b6c24cb2638c4b5c
treeb5926ab5f6d79ccd4efda10d61ecbb0d7ad6a657
parenteca84e5091c71c7834d93f38570700420625fcf0
FROMLIST: f2fs: run fstrim asynchronously if runtime discard is on

Cherry-picked from:
        origin/upstream-f2fs-stable-linux-4.14.y

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

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