NFSD: Copy FATTR4 bit number definitions from RFCs
authorChuck Lever <chuck.lever@oracle.com>
Mon, 18 Sep 2023 14:02:06 +0000 (10:02 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:26 +0000 (12:44 -0400)
commitbe46e695fb95c8acfb342f3182595aaad45301d5
tree5dbe897fd413195579e73551e9d7160fc2c65831
parentb3dbf4e4a2018e21503bc8326ceee5eb90f2966e
NFSD: Copy FATTR4 bit number definitions from RFCs

I'd like to convert nfsd4_encode_fattr() to rotate through the
attrmask using for_each_bit() instead of explicitly testing the
bitmask for each bit value. This means I need the bit numbers, as
defined in the specs, instead of our internal bitmask constants.

As a clean up, use the new spec-derived values to define the WORD#
bitmask constants.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/nfs4.h