f2fs: update REQ_TIME in f2fs_cross_rename()
Update REQ_TIME in the missing path - f2fs_cross_rename(). Signed-off-by: Sahitya Tummala <stummala@codeaurora.org> [Jaegeuk Kim: add it in f2fs_rename()] Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
4aa5ef7fb1
commit
fe2b3bc0fc
1 changed files with 4 additions and 0 deletions
|
@ -1001,6 +1001,8 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
||||||
|
|
||||||
if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
|
if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
|
||||||
f2fs_sync_fs(sbi->sb, 1);
|
f2fs_sync_fs(sbi->sb, 1);
|
||||||
|
|
||||||
|
f2fs_update_time(sbi, REQ_TIME);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
put_out_dir:
|
put_out_dir:
|
||||||
|
@ -1158,6 +1160,8 @@ static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry,
|
||||||
|
|
||||||
if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
|
if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
|
||||||
f2fs_sync_fs(sbi->sb, 1);
|
f2fs_sync_fs(sbi->sb, 1);
|
||||||
|
|
||||||
|
f2fs_update_time(sbi, REQ_TIME);
|
||||||
return 0;
|
return 0;
|
||||||
out_new_dir:
|
out_new_dir:
|
||||||
if (new_dir_entry) {
|
if (new_dir_entry) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue