diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-03-17 13:18:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-17 23:22:42 +0100 |
commit | b05b4d4b249e7f0025ddf27544c1972e32af80c8 (patch) | |
tree | a4437fdb7b200fa19b6f5368f0b894761fd2ab09 /Kernel/Storage/StorageDevice.cpp | |
parent | 999c57ef2dffb36e15c51aa99d4921122caad6ee (diff) | |
download | serenity-b05b4d4b249e7f0025ddf27544c1972e32af80c8.zip |
Kernel: Refactor storage stack with u64 as file operations offset
Diffstat (limited to 'Kernel/Storage/StorageDevice.cpp')
-rw-r--r-- | Kernel/Storage/StorageDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Storage/StorageDevice.cpp b/Kernel/Storage/StorageDevice.cpp index b158fdfa9f..7bac408f1a 100644 --- a/Kernel/Storage/StorageDevice.cpp +++ b/Kernel/Storage/StorageDevice.cpp @@ -57,7 +57,7 @@ NonnullRefPtr<StorageController> StorageDevice::controller() const return m_storage_controller; } -KResultOr<size_t> StorageDevice::read(FileDescription&, size_t offset, UserOrKernelBuffer& outbuf, size_t len) +KResultOr<size_t> StorageDevice::read(FileDescription&, u64 offset, UserOrKernelBuffer& outbuf, size_t len) { unsigned index = offset / block_size(); u16 whole_blocks = len / block_size(); @@ -122,7 +122,7 @@ bool StorageDevice::can_read(const FileDescription&, size_t offset) const return offset < (max_addressable_block() * block_size()); } -KResultOr<size_t> StorageDevice::write(FileDescription&, size_t offset, const UserOrKernelBuffer& inbuf, size_t len) +KResultOr<size_t> StorageDevice::write(FileDescription&, u64 offset, const UserOrKernelBuffer& inbuf, size_t len) { unsigned index = offset / block_size(); u16 whole_blocks = len / block_size(); |