btrfs: open code timespec64 in struct btrfs_inode
authorDavid Sterba <dsterba@suse.com>
Fri, 29 Sep 2023 19:18:44 +0000 (21:18 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:19 +0000 (16:44 +0200)
commitc6e8f898f56fae2cb5bc4396bec480f23cd8b066
treea4123e4b24487e4358bedb4cd63746d52bfcae9e
parentcc687c2ef43db15d5ad9a57d93c1b348726feb97
btrfs: open code timespec64 in struct btrfs_inode

The type of timespec64::tv_nsec is 'unsigned long', while we have only
u32 for on-disk and in-memory. This wastes a few bytes in btrfs_inode.
Add separate members for sec and nsec with the corresponding type width.
This creates a 4 byte hole in btrfs_inode which can be utilized in the
future.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/delayed-inode.c
fs/btrfs/inode.c