]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: revisit error handling flows
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 2 May 2016 19:34:48 +0000 (12:34 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 7 May 2016 17:32:25 +0000 (10:32 -0700)
commit612ba45e92d9dd753884c92f106d28bf2f98ca65
tree23545c8b18a0bac5e89654d88278b4b7b8fa7d37
parent47bd263e7321fe073144c0978f78e8b2cf8ecfa4
f2fs: revisit error handling flows

This patch fixes a couple of bugs regarding to orphan inodes when handling
errors.

This tries to
 - call alloc_nid_done with add_orphan_inode in handle_failed_inode
 - let truncate blocks in f2fs_evict_inode
 - not make a bad inode due to i_mode change

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