Skip to content

Commit d314309

Browse files
committed
NFSD: Reorder the fields in struct nfsd4_op
Pack the fields to reduce the size of struct nfsd4_op, which is used an array in struct nfsd4_compoundargs. sizeof(struct nfsd4_op): Before: /* size: 672, cachelines: 11, members: 5 */ After: /* size: 640, cachelines: 10, members: 5 */ Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 87689df commit d314309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/xdr4.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,9 @@ struct nfsd4_copy_notify {
606606

607607
struct nfsd4_op {
608608
u32 opnum;
609-
const struct nfsd4_operation * opdesc;
610609
__be32 status;
610+
const struct nfsd4_operation *opdesc;
611+
struct nfs4_replay *replay;
611612
union nfsd4_op_u {
612613
struct nfsd4_access access;
613614
struct nfsd4_close close;
@@ -671,7 +672,6 @@ struct nfsd4_op {
671672
struct nfsd4_listxattrs listxattrs;
672673
struct nfsd4_removexattr removexattr;
673674
} u;
674-
struct nfs4_replay * replay;
675675
};
676676

677677
bool nfsd4_cache_this_op(struct nfsd4_op *);

0 commit comments

Comments
 (0)