f2fs: forbid to do fstrim if fs has some error
authorYunlei He <heyunlei@huawei.com>
Thu, 1 Sep 2016 02:14:39 +0000 (10:14 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Sep 2016 17:30:40 +0000 (10:30 -0700)
commited214a11830a12a83511eb32415e71f1a0760b8a
tree24a52160867a48bd15332f0babc7c247161785e0
parent34b5d5c22d64273319a525cb4e9f2d073df9f4a0
f2fs: forbid to do fstrim if fs has some error

This patch skip fstrim if sbi set SBI_NEED_FSCK flag

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c