mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 15:17:35 +00:00
Kernel/FileSystem: Pass last mount point guest inode to unmount prepare
This will be important later on when we check file system busyness.
This commit is contained in:
parent
2fe5ece449
commit
8fb126bec6
11 changed files with 14 additions and 13 deletions
|
@ -275,7 +275,7 @@ ErrorOr<void> VirtualFileSystem::unmount(Custody& mountpoint_custody)
|
|||
if (custody_path->view() != mountpoint_path->view())
|
||||
continue;
|
||||
NonnullRefPtr<FileSystem> fs = mount.guest_fs();
|
||||
TRY(fs->prepare_to_unmount());
|
||||
TRY(fs->prepare_to_unmount(mount.guest()));
|
||||
fs->mounted_count({}).with([&](auto& mounted_count) {
|
||||
VERIFY(mounted_count > 0);
|
||||
if (mounted_count == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue