f2fs: propagate error given by f2fs_find_entry
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 25 May 2016 21:29:11 +0000 (14:29 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 3 Jun 2016 01:05:18 +0000 (18:05 -0700)
commit42d964016e2760d75144f41cc78ad8bdca8dc240
treecf756698813e7d039c6bd6cb98f505f8b58351ef
parentb93f7712868648c0529eed6b568cea1493d3d9f9
f2fs: propagate error given by f2fs_find_entry

If we get ENOMEM or EIO in f2fs_find_entry, we should stop right away.
Otherwise, for example, we can get duplicate directory entry by ->chash and
->clevel.

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