mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:34:05 +08:00
f2fs: clear FI_INC_LINK during the recovery
If an inode are fsynced multiple times with fsync & dent marks, this inode will set FI_INC_LINK at find_fsync_dnodes during the recovery. But, in recover_inode, recover_dentry doesn't clear that flag when multiple hits were occurred. So this patch removes the flag for the further consistency. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
617deb8c05
commit
695facc05a
@ -62,8 +62,10 @@ static int recover_dentry(struct page *ipage, struct inode *inode)
|
|||||||
}
|
}
|
||||||
retry:
|
retry:
|
||||||
de = f2fs_find_entry(dir, &name, &page);
|
de = f2fs_find_entry(dir, &name, &page);
|
||||||
if (de && inode->i_ino == le32_to_cpu(de->ino))
|
if (de && inode->i_ino == le32_to_cpu(de->ino)) {
|
||||||
|
clear_inode_flag(F2FS_I(inode), FI_INC_LINK);
|
||||||
goto out_unmap_put;
|
goto out_unmap_put;
|
||||||
|
}
|
||||||
if (de) {
|
if (de) {
|
||||||
einode = f2fs_iget(inode->i_sb, le32_to_cpu(de->ino));
|
einode = f2fs_iget(inode->i_sb, le32_to_cpu(de->ino));
|
||||||
if (IS_ERR(einode)) {
|
if (IS_ERR(einode)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user