dentry.c: Rewrite and document get_dentry()