|
|
@@ -935,6 +935,7 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|
|
}
|
|
|
f2fs_i_links_write(old_dir, false);
|
|
|
}
|
|
|
+ add_ino_entry(sbi, new_dir->i_ino, TRANS_DIR_INO);
|
|
|
|
|
|
f2fs_unlock_op(sbi);
|
|
|
|
|
|
@@ -1089,6 +1090,9 @@ static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|
|
}
|
|
|
f2fs_mark_inode_dirty_sync(new_dir, false);
|
|
|
|
|
|
+ add_ino_entry(sbi, old_dir->i_ino, TRANS_DIR_INO);
|
|
|
+ add_ino_entry(sbi, new_dir->i_ino, TRANS_DIR_INO);
|
|
|
+
|
|
|
f2fs_unlock_op(sbi);
|
|
|
|
|
|
if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
|