dentry.c: A couple small optimizations