]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: account for orphan inodes during recovery
authorRuss W. Knize <rknize@gmail.com>
Tue, 24 Sep 2013 14:40:57 +0000 (09:40 -0500)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 25 Sep 2013 08:59:32 +0000 (17:59 +0900)
commit2e5558f4a5cf16a7394fd5770087303db8912c66
tree08bde9e64eaab5f9154596cf83979b03cc526861
parent52ab956000214aa111254e52e5eac3d91bd7cf4b
f2fs: account for orphan inodes during recovery

During recovery, orphan inodes are deleted via truncate_hole().
These orphans are added by recover_dentry() via f2fs_delete_entry().
However, f2fs_delete_entry() adds them via add_orphan_inode()
without calling acquire_orphan_inode() first.  This prevents the
counters from being incremented properly, which causes them to
underflow when remove_orphan_inode() is called later on.

Signed-off-by: Russ Knize <rknize@motorola.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/recovery.c