diff options
author | Jeff Layton <[email protected]> | 2024-05-17 20:08:40 -0400 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-05-27 15:58:46 +0200 |
commit | 3aa63a569c64e708df547a8913c84e64a06e7853 (patch) | |
tree | ce9a4bff9586690c2bb689c2f826a0de5c8e7156 /tools/perf/scripts/python/netdev-times.py | |
parent | 23cc6ef6fd453b13502caae23130844e7d6ed0fe (diff) |
fs: switch timespec64 fields in inode to discrete integers
Adjacent struct timespec64's pack poorly. Switch them to discrete
integer fields for the seconds and nanoseconds. This shaves 8 bytes off
struct inode with a garden-variety Fedora Kconfig on x86_64, but that
also moves the i_lock into the previous cacheline, away from the fields
it protects.
To remedy that, move i_generation above the i_lock, which moves the new
4-byte hole to just after the i_fsnotify_mask in my setup. Amir has
plans to use that to expand the i_fsnotify_mask, so add a comment to
that effect as well.
Cc: Amir Goldstein <[email protected]>
Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions