Re: [PATCH] f2fs: convert discard_wake and gc_wake to bool type

From: Chao Yu
Date: Wed Jan 11 2023 - 08:40:15 EST


On 2022/12/12 21:36, Yangtao Li wrote:
discard_wake and gc_wake have only two values, 0 or 1.
So there is no need to use int type to store them.

BTW, move discard_wake to the end of the
discard_cmd_control structure.

Before:

- sizeof(struct discard_cmd_control): 8392

After move:

- sizeof(struct discard_cmd_control): 8384

Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,