Kernel: Move DiskDevice::block_size() up to BlockDevice

All block devices should have a block size, after all. This defaults to
PAGE_SIZE if no size is specified.
This commit is contained in:
Andreas Kling 2019-08-21 16:45:52 +02:00
commit 5de483cfbb
Notes: sideshowbarker 2024-07-19 12:34:56 +09:00
11 changed files with 23 additions and 45 deletions

View file

@ -1,7 +1,7 @@
#include <Kernel/Devices/DiskDevice.h>
DiskDevice::DiskDevice(int major, int minor)
: BlockDevice(major, minor)
DiskDevice::DiskDevice(int major, int minor, size_t block_size)
: BlockDevice(major, minor, block_size)
{
}