commit | b06cf3754523682ff92fbc0f7702c32a024a4819 | [log] [tgz] |
---|---|---|
author | Chuck Lever <chuck.lever@oracle.com> | Mon Sep 18 09:57:39 2023 -0400 |
committer | Chuck Lever <chuck.lever@oracle.com> | Mon Oct 16 12:44:13 2023 -0400 |
tree | df90e28867ef63cd5c550b0aa89623c5dedddcd1 | |
parent | c9090e273300cd30dff05ce870a4c18f476a2f32 [diff] |
NFSD: Add nfsd4_encode_fattr4_type() Refactor the encoder for FATTR4_TYPE into a helper. In a subsequent patch, this helper will be called from a bitmask loop. In addition, restructure the code so that byte-swapping is done on constant values rather than at run time. Run-time swapping can be costly on some platforms, and "type" is a frequently-requested attribute. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>