diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-22 16:34:24 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-22 16:34:24 +0100 |
commit | 05f18febb6cd21fb15ab7a3af7ea715c6b653e08 (patch) | |
tree | 6450e17ca8d24412f4508533bb120da0b0b2f9e0 /Kernel/IDEDiskDevice.cpp | |
parent | bda0c935c26867f3a613723fd3bc7a84aef110ba (diff) | |
download | serenity-05f18febb6cd21fb15ab7a3af7ea715c6b653e08.zip |
Ext2FS: Delete inodes when their link count goes to zero.
Diffstat (limited to 'Kernel/IDEDiskDevice.cpp')
-rw-r--r-- | Kernel/IDEDiskDevice.cpp | 2 |
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); |