vfs: add dirent parent pointer
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
0eb0f4541a
commit
d2c698ac0a
7 changed files with 25 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue