lkml.org 
[lkml]   [2022]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] null-blk: save memory footprint for struct nullb_cmd
Date
On Tue, 26 Apr 2022 10:21:33 +0800, Yu Kuai wrote:
> Total 16 bytes can be saved in two ways:
>
> 1) The field 'bio' will only be used in bio based mode, and the field
> 'rq' will only be used in mq mode. Since they won't be used in the
> same time, declare a union for them.
> 2) The field 'bool fake_timeout' can be placed in the hole after the
> field 'error'.
>
> [...]

Applied, thanks!

[1/1] null-blk: save memory footprint for struct nullb_cmd
commit: 8ba816b23abd2a9a05705f3d00b8653f8be73015

Best regards,
--
Jens Axboe


\
 
 \ /
  Last update: 2022-04-26 04:33    [W:0.064 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site