f2fs: set CP_TRIMMED_FLAG correctly
authorChao Yu <yuchao0@huawei.com>
Wed, 14 Jun 2017 15:00:55 +0000 (23:00 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Jul 2017 09:11:47 +0000 (02:11 -0700)
commit663f387b713089463e37761bfa2561972c7f45ff
tree48292077d39a12217f78d2206007e9bcc0afe9d0
parent67773a1fbdcb5be4a0490b1dd2a5975784ef40df
f2fs: set CP_TRIMMED_FLAG correctly

Don't set CP_TRIMMED_FLAG for non-zoned block device or discard
unsupported device, it can avoid to trigger unneeded checkpoint for
that kind of device.

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