summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-01-10 08:28:16 -1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-30 15:53:59 -0800
commit1c9f2c7606afe149800986182638f636646dd824 (patch)
tree9041abf8401940f3922ec9d5dfdbbcccdcaf0f0d /fs/kernfs
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff)
downloadlinux-1c9f2c7606afe149800986182638f636646dd824.tar.gz
linux-1c9f2c7606afe149800986182638f636646dd824.tar.bz2
linux-1c9f2c7606afe149800986182638f636646dd824.zip
kernfs: Rearrange kernfs_node fields to reduce its size on 64bit
Moving .flags and .mode right below .hash makes kernfs_node smaller by 8 bytes on 64bit. To avoid creating a hole from 8 bytes alignment on 32bit archs, .priv is moved below so that there are two 32bit pointers after the 64bit .id field. v2: Updated to avoid size increase on 32bit noticed by Geert. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/ZZ7hwA18nfmFjYpj@slm.duckdns.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions