rnbd-clt: adjust the layout of struct rnbd_clt_dev
authorGuoqing Jiang <guoqing.jiang@linux.dev>
Wed, 6 Jul 2022 13:31:49 +0000 (21:31 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 13:38:40 +0000 (07:38 -0600)
commit50aff97483b6afe4a9796154e9f6a5ca0a4f55c2
tree86d1d50b8e290a37742fc3f1fcb26c6f432a95f9
parent7e6c34c6ca2282ea1a9c3a2d06db3e3578f272dd
rnbd-clt: adjust the layout of struct rnbd_clt_dev

While at it, let re-arrange the struct to remove holes.

Before, pahole reports

/* size: 232, cachelines: 4, members: 17 */
/* sum members: 224, holes: 2, sum holes: 8 */
/* last cacheline: 40 bytes */

After the change, the report changes to

/* size: 224, cachelines: 4, members: 17 */
/* last cacheline: 32 bytes */

Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Link: https://lore.kernel.org/r/20220706133152.12058-6-guoqing.jiang@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-clt.h