commit | 8c14bfadeac2a01b305ef4434907295b81b58db2 | [log] [tgz] |
---|---|---|
author | Chao Yu <chao2.yu@samsung.com> | Fri Aug 07 17:58:43 2015 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Aug 14 16:02:14 2015 -0700 |
tree | 3eda77311b4fefdb284ef157e46ff50a21710873 | |
parent | 47e70ca46f9074efe6573263c0de5bef0af829de [diff] |
f2fs: handle error of f2fs_iget correctly In recover_orphan_inode, whenever f2fs_iget fail, we will make kernel panic, but it's not reasonable, because f2fs_iget can fail due to a lot of reasons including out of memory. So we change error handling method as below: a) when finding no entry for the orphan inode, bug_on for catching bugs; b) for other reasons, report it to caller. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>