]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Shrink size of struct rpc_task
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 23 Jul 2022 18:47:28 +0000 (14:47 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 23 Jul 2022 18:47:28 +0000 (14:47 -0400)
commit35c228b670f91270f340298c00daed74f6615961
tree7fd1687cc090ea44d33b402ab0f430893bf32486
parent86563ec2484b730dfa21bb147e2b6c8d2e49f309
SUNRPC: Shrink size of struct rpc_task

Move the field 'tk_rpc_status' so that we eliminate a 4 byte hole in the
structure.
For x86_64, this shrinks the size of the struct by 8 bytes.

'pahole' output before the change:
        /* size: 232, cachelines: 4, members: 27 */
        /* sum members: 222, holes: 1, sum holes: 4 */
        /* sum bitfield members: 8 bits (1 bytes) */
        /* padding: 5 */
        /* last cacheline: 40 bytes */

'pahole' output after the change:
        /* size: 224, cachelines: 4, members: 27 */
        /* padding: 1 */
        /* last cacheline: 32 bytes */

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/sched.h