lib: fs: fix incorect offset calculation in page request handler

This commit is contained in:
2026-03-21 10:46:40 +00:00
parent d1a9c5cd45
commit 2fab6687b0

View File

@@ -188,7 +188,7 @@ static enum fs_status handle_page_request(struct fs_context *ctx)
enum fs_status status = fs_file_read_at( enum fs_status status = fs_file_read_at(
mapping->m_file, mapping->m_file,
&buf, &buf,
mapping->m_file_offset + packet.req_offset, packet.req_offset,
length); length);
if (status != FS_SUCCESS) { if (status != FS_SUCCESS) {
kern_logf("map-read failed with code %d", status); kern_logf("map-read failed with code %d", status);