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>
Thu, 25 Jan 2018 18:40:10 +0000 (10:40 -0800)
commit3b60d802d9828f99db83c3ca4fd99a5fa3fce884
tree466f28c155385b005742488204d6f284b130cab8
parent6819b884e0eea641a2678be01a41a071efcfd489
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