Re: [PATCH] tty: shrink the size of struct tty_struct by 40 bytes

From: Greg Kroah-Hartman
Date: Fri Aug 25 2023 - 11:35:15 EST


On Fri, Aug 25, 2023 at 05:28:20PM +0200, Greg Kroah-Hartman wrote:
> bool hw_stopped;
> - unsigned int receive_room;
> + bool closing;
> int flow_change;

Note, "flow_change" really only has 2 values, 1 or 2, so it could be a
boolean, or a u8 at the worse (both take the same amount of space). But
changing that here doesn't affect the overall size of the structure,
just increases the hole at this location in the structure, so it's not a
big deal at this point in time.

thanks,

greg k-h