kernel: Remove a mount from the mountpoint list after unmounting it
This commit is contained in:
parent
8f6bd29da3
commit
3a73d49aa1
@ -183,6 +183,7 @@ namespace VFS
|
|||||||
|
|
||||||
auto mount = (MountInode*)inode.ptr();
|
auto mount = (MountInode*)inode.ptr();
|
||||||
TRY(parent_inode->replace_entry(mount->source(), child.chars()));
|
TRY(parent_inode->replace_entry(mount->source(), child.chars()));
|
||||||
|
g_mounts.remove(mount);
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user