Refactor some of the dentry, inode, and lookup table code