Skip to content

Commit

Permalink
NFSD: Use a bitmask loop to encode FATTR4 results
Browse files Browse the repository at this point in the history
The fattr4 encoder is now structured like the COMPOUND op encoder:
one function for each individual attribute, called by bit number.
Benefits include:

- The individual attributes are now guaranteed to be encoded in
  bitmask order into the send buffer

- There can be no unwanted side effects between attribute encoders

- The code now clearly documents which attributes are /not/
  implemented on this server

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
  • Loading branch information
Chuck Lever committed Oct 16, 2023
1 parent be46e69 commit fce7913
Showing 1 changed file with 146 additions and 287 deletions.
Loading

0 comments on commit fce7913

Please sign in to comment.