vfs: add dirent parent pointer

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-12 10:47:58 -04:00
commit d2c698ac0a
7 changed files with 25 additions and 13 deletions

View file

@ -96,7 +96,7 @@ static int mount_traverse(const char *path, struct mount **out_mount, dirent_t *
bool is_last = (*p == '\0');
dirent_t *found = NULL;
int res = inode_find_dirent(cur_dent->inode, name, &found);
int res = dirent_lookup(cur_dent, name, &found);
if (res < 0) {
dirent_dec_ref(cur_dent);
return res;