vfs: remove dentry of a destination after rename()
If dentry has elevated reference count during rename (a file is opened for instance) it is not destroyed and remains in the dentry hash. As a result old file is accessible by destination path instead of new one. Signed-off-by:Gleb Natapov <gleb@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Please register or sign in to comment