mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 00:31:52 +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
Notes:
sideshowbarker
2024-07-17 05:02:42 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 8fb126bec6
Pull-request: https://github.com/SerenityOS/serenity/pull/19668
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/linusg
11 changed files with 14 additions and 13 deletions
|
@ -532,8 +532,9 @@ unsigned Ext2FS::free_inode_count() const
|
|||
return super_block().s_free_inodes_count;
|
||||
}
|
||||
|
||||
ErrorOr<void> Ext2FS::prepare_to_clear_last_mount()
|
||||
ErrorOr<void> Ext2FS::prepare_to_clear_last_mount(Inode& mount_guest_inode)
|
||||
{
|
||||
(void)mount_guest_inode;
|
||||
MutexLocker locker(m_lock);
|
||||
for (auto& it : m_inode_cache) {
|
||||
if (it.value->ref_count() > 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue