NFSD: Simplify struct knfsd_fh
authorChuck Lever <chuck.lever@oracle.com>
Fri, 20 Jun 2025 12:31:55 +0000 (08:31 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:47 +0000 (12:46 -0400)
commit03963793c82598ff89bcca11aba8444721f91009
tree59f7e6910e9401089c2c7d8a153d588ef9208a29
parentedf7b905bc1d4dac1ed3645f0c1e8b7aa8d0e8b8
NFSD: Simplify struct knfsd_fh

Compilers are allowed to insert padding and reorder the
fields in a struct, so using a union of an array and a
struct in struct knfsd_fh is not reliable.

The position of elements in an array is more reliable.

Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsfh.h