The inode/dentry split you build here is the same design Linux's VFS layer uses for every real filesystem, and it's exactly how tmpfs (the filesystem behind /tmp and /dev/shm) organizes files entirely in RAM. Get path resolution wrong and you reproduce real VFS bugs — like directory loops or dangling dentries — that have caused kernel panics in production.