f2fs: convert discard_wake and gc_wake to bool type
authorYangtao Li <frank.li@vivo.com>
Mon, 12 Dec 2022 13:36:44 +0000 (21:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Jan 2023 19:15:19 +0000 (11:15 -0800)
commit45c98f5a58f36c35ecf5a149cbf69cf5fd022120
tree58cc9ab9d5955e0e906e483eda66f9c1e72e698e
parentf08142bc3a60f5af632ba48dc2fef8797043086d
f2fs: convert discard_wake and gc_wake to bool type

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@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/gc.h
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/sysfs.c