]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: adjust the layout of the ext4_inode_info structure to save memory
authorJunchao Sun <sunjunchao2870@gmail.com>
Mon, 3 Jun 2024 13:15:24 +0000 (21:15 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 Aug 2024 01:37:00 +0000 (21:37 -0400)
commita3c3eecc7c876c7f2b09d9ee1acf5b8b85996cff
tree80bccc1e0ec9c47946a5502b49459c53bb961ea7
parent47ac09b91befbb6a235ab620c32af719f8208399
ext4: adjust the layout of the ext4_inode_info structure to save memory

Using pahole, we can see that there are some padding holes
in the current ext4_inode_info structure. Adjusting the
layout of ext4_inode_info can reduce these holes,
resulting in the size of the structure decreasing
from 2424 bytes to 2408 bytes.

Signed-off-by: Junchao Sun <sunjunchao2870@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240603131524.324224-1-sunjunchao2870@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h