Skip to content
Snippets Groups Projects
user avatar
Raphael S. Carvalho authored
The link system call currently keeps the dentry in the cache by avoiding
calling drele on success.  However, it's not the right thing as link
creates the entry, not references it (much the same as create).
Currently, link works ok, but subsequent calls on the same dentry would
fail as its refcount would be wrong.

Strangely, this problem didn't come up at the time the link syscall was
implemented.  Something that has been changed recently made this bug
manifest.

This patch fixes it.

Signed-off-by: default avatarRaphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
324014ea
History
Name Last commit Last update