]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/cifs/inode.c
enable fallocate punch hole ("fallocate -p") for SMB3
[karo-tx-linux.git] / fs / cifs / inode.c
index 41de3935caa0cff86e58e8c4a0db829e4ca88a7e..753e7a3486de41fa6b55f758389a9550992d5399 100644 (file)
@@ -1717,6 +1717,12 @@ unlink_target:
                                    target_dentry, to_name);
        }
 
+       /* force revalidate to go get info when needed */
+       CIFS_I(source_dir)->time = CIFS_I(target_dir)->time = 0;
+
+       source_dir->i_ctime = source_dir->i_mtime = target_dir->i_ctime =
+               target_dir->i_mtime = current_fs_time(source_dir->i_sb);
+
 cifs_rename_exit:
        kfree(info_buf_source);
        kfree(from_name);