f2fs: avoid infinite loop on cp_error
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 10 Jan 2015 00:27:17 +0000 (16:27 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Feb 2015 01:04:30 +0000 (17:04 -0800)
commit871f599f4a869d24ef98b0217f19f0cc55ff59ac
tree24bfdfff79ff3b008a8996dc88f210659a12edfc
parent08e4126e1e91b01bea5c71980e7008ec5075d701
f2fs: avoid infinite loop on cp_error

If cp_error is set, we should avoid all the infinite loop.
In f2fs_sync_file, there is a hole, and this patch fixes that.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c