mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
tresor: unused args at "R/W client data" at blk IO
The request classes Block_io::Read_client_data and Block_io::Write_client_data used to receive a block reference for no reason. This commit removes these args. Ref #5062
This commit is contained in:
parent
bcd82b7e75
commit
cf72499919
@ -145,15 +145,15 @@ class Tresor::Block_io : public Module
|
||||
struct Write_client_data : Request
|
||||
{
|
||||
Write_client_data(Module_id m, Module_channel_id c, Physical_block_address p, Virtual_block_address v,
|
||||
Key_id k, Request_tag t, Request_offset o, Block const &b, Hash &h, bool &s)
|
||||
: Request(m, c, Request::WRITE_CLIENT_DATA, o, t, k, p, v, *const_cast<Block*>(&b), h, s) { }
|
||||
Key_id k, Request_tag t, Request_offset o, Hash &h, bool &s)
|
||||
: Request(m, c, Request::WRITE_CLIENT_DATA, o, t, k, p, v, *(Block*)0, h, s) { }
|
||||
};
|
||||
|
||||
struct Read_client_data : Request
|
||||
{
|
||||
Read_client_data(Module_id m, Module_channel_id c, Physical_block_address p, Virtual_block_address v,
|
||||
Key_id k, Request_tag t, Request_offset o, Block &b, bool &s)
|
||||
: Request(m, c, Request::READ_CLIENT_DATA, o, t, k, p, v, b, *(Hash*)0, s) { }
|
||||
Key_id k, Request_tag t, Request_offset o, bool &s)
|
||||
: Request(m, c, Request::READ_CLIENT_DATA, o, t, k, p, v, *(Block*)0, *(Hash*)0, s) { }
|
||||
};
|
||||
|
||||
Block_io(Vfs::Env &, Xml_node const &);
|
||||
|
@ -112,7 +112,7 @@ void Virtual_block_device_channel::_read_vba(bool &progress)
|
||||
} else
|
||||
_generate_req<Block_io::Read_client_data>(
|
||||
READ_BLK_SUCCEEDED, progress, node.pba, _vba, req._curr_key_id,
|
||||
req._client_req_tag, req._client_req_offset, _data_blk);
|
||||
req._client_req_tag, req._client_req_offset);
|
||||
_lvl--;
|
||||
break;
|
||||
}
|
||||
@ -255,7 +255,7 @@ void Virtual_block_device_channel::_write_vba(bool &progress)
|
||||
else
|
||||
_generate_req<Block_io::Write_client_data>(
|
||||
WRITE_BLK_SUCCEEDED, progress, _new_pbas.pbas[0], _vba,
|
||||
req._curr_key_id, req._client_req_tag, req._client_req_offset, _data_blk, _hash);
|
||||
req._curr_key_id, req._client_req_tag, req._client_req_offset, _hash);
|
||||
}
|
||||
_lvl--;
|
||||
break;
|
||||
@ -267,7 +267,7 @@ void Virtual_block_device_channel::_write_vba(bool &progress)
|
||||
|
||||
_generate_req<Block_io::Write_client_data>(
|
||||
WRITE_BLK_SUCCEEDED, progress, _new_pbas.pbas[0], _vba, req._curr_key_id,
|
||||
req._client_req_tag, req._client_req_offset, _data_blk, _hash);
|
||||
req._client_req_tag, req._client_req_offset, _hash);
|
||||
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user