]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nfs: fscache: use timespec64 in inode auxdata
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 Oct 2019 10:41:42 +0000 (11:41 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 17:07:33 +0000 (18:07 +0100)
commit6e31ded6895adfca97211118cc9b72236e8f6d53
tree04c23e11580e23a2097aa5c28196794e7e62aec9
parent057f184b1245150b88e59997fc6f1af0e138d42e
nfs: fscache: use timespec64 in inode auxdata

nfs currently behaves differently on 32-bit and 64-bit kernels regarding
the on-disk format of nfs_fscache_inode_auxdata.

That format should really be the same on any kernel, and we should avoid
the 'timespec' type in order to remove that from the kernel later on.

Using plain 'timespec64' would not be good here, since that includes
implied padding and would possibly leak kernel stack data to the on-disk
format on 32-bit architectures.

struct __kernel_timespec would work as a replacement, but open-coding
the two struct members in nfs_fscache_inode_auxdata makes it more
obvious what's going on here, and keeps the current format for 64-bit
architectures.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/nfs/fscache-index.c
fs/nfs/fscache.c
fs/nfs/fscache.h