From: Jaegeuk Kim Date: Wed, 5 Jun 2013 08:42:45 +0000 (+0900) Subject: f2fs: fix iget/iput of dir during recovery X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~81^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5deb82671ae344b28b4e744020afcbc76df1779b;p=pandora-kernel.git f2fs: fix iget/iput of dir during recovery It is possible that iput is skipped after iget during the recovery. In recover_dentry(), dir = f2fs_iget(); ... if (de && inode->i_ino == le32_to_cpu(de->ino)) goto out; In this case, this dir is not able to be added in dirty_dir_inode_list. The actual linking is done only when set_page_dirty() is called. So let's add this newly got inode into the list explicitly, and put it at the end of the recovery routine. Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed