mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
committed by
Jelle Raaijmakers
parent
2fe5ece449
commit
8fb126bec6
@@ -27,11 +27,11 @@ FileSystem::~FileSystem()
|
||||
{
|
||||
}
|
||||
|
||||
ErrorOr<void> FileSystem::prepare_to_unmount()
|
||||
ErrorOr<void> FileSystem::prepare_to_unmount(Inode& mount_guest_inode)
|
||||
{
|
||||
return m_attach_count.with([&](auto& attach_count) -> ErrorOr<void> {
|
||||
if (attach_count == 1)
|
||||
return prepare_to_clear_last_mount();
|
||||
return prepare_to_clear_last_mount(mount_guest_inode);
|
||||
return {};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user