feat: input device subsystem to resolve race condition on polling input
[lunaix-os.git] / lunaix-os / kernel / fs / vfs.c
index 83bd0bd26a3271e6d2719e591d8ee9caa48a36e0..7fbc2268008b61a4777b3420cb817f777e37fbec 100644 (file)
@@ -367,6 +367,7 @@ vfs_d_alloc(struct v_dnode* parent, struct hstr* name)
 
     if (parent) {
         dnode->super_block = parent->super_block;
+        dnode->mnt = parent->mnt;
     }
 
     lru_use_one(dnode_lru, &dnode->lru);