linux/fs/f2fs
Chao Yu 2eae077e6e f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info
This patch tries to use bitfield in struct f2fs_io_info to improve
memory usage.

struct f2fs_io_info {
...
	unsigned int need_lock:8;	/* indicate we need to lock cp_rwsem */
	unsigned int version:8;		/* version of the node */
	unsigned int submitted:1;	/* indicate IO submission */
	unsigned int in_list:1;		/* indicate fio is in io_list */
	unsigned int is_por:1;		/* indicate IO is from recovery or not */
	unsigned int retry:1;		/* need to reallocate block address */
	unsigned int encrypted:1;	/* indicate file is encrypted */
	unsigned int post_read:1;	/* require post read */
...
};

After this patch, size of struct f2fs_io_info reduces from 136 to 120.

[Nathan: fix a compile warning (single-bit-bitfield-constant-conversion)]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2023-02-02 13:37:16 -08:00
..
acl.c fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
acl.h fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
checkpoint.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
compress.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
data.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
debug.c f2fs: fix some format WARNING in debug.c and sysfs.c 2022-12-12 14:59:39 -08:00
dir.c f2fs: merge f2fs_show_injection_info() into time_to_inject() 2023-01-11 11:15:19 -08:00
extent_cache.c f2fs: add a f2fs_lookup_extent_cache_block helper 2023-01-06 15:13:00 -08:00
f2fs.h f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
file.c f2fs: factor the read/write tracing logic into a helper 2023-02-02 13:37:16 -08:00
gc.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
gc.h f2fs: convert discard_wake and gc_wake to bool type 2023-01-11 11:15:19 -08:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: fix information leak in f2fs_move_inline_dirents() 2023-01-31 10:47:46 -08:00
inode.c f2fs: fix to do sanity check on extent cache correctly 2023-01-31 10:47:45 -08:00
iostat.c f2fs: drop useless initializer and unneeded local variable 2023-01-30 13:23:51 -08:00
iostat.h f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
Kconfig f2fs: introduce F2FS_UNFAIR_RWSEM to support unfair rwsem 2022-03-04 09:15:53 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs: remove unneeded f2fs_cp_error() in f2fs_create_whiteout() 2023-01-31 10:47:44 -08:00
node.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
node.h f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
recovery.c f2fs: do some cleanup for f2fs module init 2022-12-08 09:32:20 -08:00
segment.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:37:16 -08:00
segment.h f2fs: add a f2fs_curseg_valid_blocks helper 2023-02-02 13:37:15 -08:00
shrinker.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
super.c f2fs: return true if all cmd were issued or no cmd need to be issued for f2fs_issue_discard_timeout() 2023-01-31 10:47:45 -08:00
sysfs.c f2fs: fix to check warm_data_age_threshold 2023-01-31 10:47:45 -08:00
verity.c fs: f2fs: initialize fsdata in pagecache_write() 2023-01-31 10:47:45 -08:00
xattr.c f2fs: support recording errors into superblock 2022-10-04 13:31:45 -07:00
xattr.h