diff options
author | 2024-05-17 20:08:40 -0400 | |
---|---|---|
committer | 2024-05-27 15:58:46 +0200 | |
commit | 3aa63a569c64e708df547a8913c84e64a06e7853 (patch) | |
tree | ce9a4bff9586690c2bb689c2f826a0de5c8e7156 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs: remove accidental overflow during wraparound check (diff) | |
download | wireguard-linux-3aa63a569c64e708df547a8913c84e64a06e7853.tar.xz wireguard-linux-3aa63a569c64e708df547a8913c84e64a06e7853.zip |
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 <amir73il@gmail.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20240517-amtime-v1-1-7b804ca4be8f@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions