summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-12-29 01:00:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-12-29 12:04:15 +0100
commit4a3a947df3f9722065b5c938a75d9d651ae1ff03 (patch)
tree9adc5d0def88e2494ad95b3a4f861f701e31f402 /Kernel/Storage
parentd7ec5d042f60ce2a31569a75383eaa4551f86217 (diff)
downloadserenity-4a3a947df3f9722065b5c938a75d9d651ae1ff03.zip
Kernel: Rename File::{before_removing => will_be_destroyed}
This will allow File and it's descendants to use RefCounted instead of having a custom implementation of unref. (Since RefCounted calls will_be_destroyed automatically) This commit also removes an erroneous call to `before_removing` in AHCIPort, this is a duplicate call, as the only reference to the device is immediately dropped following the call, which in turns calls `before_removing` via File::unref.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/ATA/AHCIPort.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/Storage/ATA/AHCIPort.cpp b/Kernel/Storage/ATA/AHCIPort.cpp
index 3cac75f344..b84c39317f 100644
--- a/Kernel/Storage/ATA/AHCIPort.cpp
+++ b/Kernel/Storage/ATA/AHCIPort.cpp
@@ -77,7 +77,6 @@ void AHCIPort::handle_interrupt()
m_connected_device->prepare_for_unplug();
StorageManagement::the().remove_device(*m_connected_device);
g_io_work->queue([this]() {
- m_connected_device->before_removing();
m_connected_device.clear();
});
} else {