summaryrefslogtreecommitdiff
path: root/Kernel/IDEDiskDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-22 16:34:24 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-22 16:34:24 +0100
commit05f18febb6cd21fb15ab7a3af7ea715c6b653e08 (patch)
tree6450e17ca8d24412f4508533bb120da0b0b2f9e0 /Kernel/IDEDiskDevice.cpp
parentbda0c935c26867f3a613723fd3bc7a84aef110ba (diff)
downloadserenity-05f18febb6cd21fb15ab7a3af7ea715c6b653e08.zip
Ext2FS: Delete inodes when their link count goes to zero.
Diffstat (limited to 'Kernel/IDEDiskDevice.cpp')
-rw-r--r--Kernel/IDEDiskDevice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/IDEDiskDevice.cpp b/Kernel/IDEDiskDevice.cpp
index f1fcc53393..e8123fa716 100644
--- a/Kernel/IDEDiskDevice.cpp
+++ b/Kernel/IDEDiskDevice.cpp
@@ -223,11 +223,13 @@ bool IDEDiskDevice::read_sectors(dword start_sector, word count, byte* outbuf)
bool IDEDiskDevice::write_sectors(dword start_sector, word count, const byte* data)
{
LOCKER(m_lock);
+#ifdef DISK_DEBUG
dbgprintf("%s(%u): IDEDiskDevice::write_sectors request (%u sector(s) @ %u)\n",
current->name().characters(),
current->pid(),
count,
start_sector);
+#endif
disable_irq();
auto chs = lba_to_chs(start_sector);