f2fs: update REQ_TIME in f2fs_cross_rename()
authorSahitya Tummala <stummala@codeaurora.org>
Fri, 5 Oct 2018 05:17:40 +0000 (10:47 +0530)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 Oct 2018 16:37:00 +0000 (09:37 -0700)
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>
fs/f2fs/namei.c

index d5de8a99532d2cb9a8297ae70b5140e3de8984eb..a54577e417b156b5f33bfd01a765c4a3aacf20a7 100644 (file)
@@ -1000,6 +1000,8 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
 
        if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
                f2fs_sync_fs(sbi->sb, 1);
+
+       f2fs_update_time(sbi, REQ_TIME);
        return 0;
 
 put_out_dir:
@@ -1157,6 +1159,8 @@ static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry,
 
        if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
                f2fs_sync_fs(sbi->sb, 1);
+
+       f2fs_update_time(sbi, REQ_TIME);
        return 0;
 out_new_dir:
        if (new_dir_entry) {