mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
FileSystem: VFS should require Badge<Device> for device registration.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 13:49:25 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/fa6446fc0dc
@@ -584,12 +584,12 @@ InodeIdentifier VFS::Mount::host() const
|
||||
return m_host_custody->inode().identifier();
|
||||
}
|
||||
|
||||
void VFS::register_device(Device& device)
|
||||
void VFS::register_device(Badge<Device>, Device& device)
|
||||
{
|
||||
m_devices.set(encoded_device(device.major(), device.minor()), &device);
|
||||
}
|
||||
|
||||
void VFS::unregister_device(Device& device)
|
||||
void VFS::unregister_device(Badge<Device>, Device& device)
|
||||
{
|
||||
m_devices.remove(encoded_device(device.major(), device.minor()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user