Home
last modified time | relevance | path

Searched hist:"5 deb82671ae344b28b4e744020afcbc76df1779b" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Drecovery.cdiff 5deb82671ae344b28b4e744020afcbc76df1779b Wed Jun 05 03:42:45 CDT 2013 Jaegeuk Kim <jaegeuk.kim@samsung.com> 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 <jaegeuk.kim@samsung.com>
H A Dcheckpoint.cdiff 5deb82671ae344b28b4e744020afcbc76df1779b Wed Jun 05 03:42:45 CDT 2013 Jaegeuk Kim <jaegeuk.kim@samsung.com> 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 <jaegeuk.kim@samsung.com>
H A Df2fs.hdiff 5deb82671ae344b28b4e744020afcbc76df1779b Wed Jun 05 03:42:45 CDT 2013 Jaegeuk Kim <jaegeuk.kim@samsung.com> 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 <jaegeuk.kim@samsung.com>