f2fs: stop issuing discard if fs is readonly
authorChao Yu <yuchao0@huawei.com>
Thu, 25 Jan 2018 10:57:27 +0000 (18:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:30:43 +0000 (13:30 -0800)
commit76688790c3bf7da5c40f26530643fded3efbcafd
tree4e24e541bea526e816c675455127c1f9d422feb0
parentae93dca264139399961e6de92935ba95da6a7d9b
f2fs: stop issuing discard if fs is readonly

If filesystem is readonly, stop to issue discard in daemon.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c