f2fs: check return value of write_checkpoint during fstrim
authorChao Yu <yuchao0@huawei.com>
Sun, 21 Aug 2016 15:21:29 +0000 (23:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Aug 2016 01:31:11 +0000 (18:31 -0700)
commite932835377f95c91789c8572a5aaaa9daad5d262
tree0a2f66a5e465646fdbeafa005ded2b475feee289
parent58383befc3377b4e2305b98f91e445af73ba8d62
f2fs: check return value of write_checkpoint during fstrim

During fstrim, if one of multiple write_checkpoint failed, break off and
return error number to caller.

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