Commit 2fa9cf6
committed
ioctl: Rearrange members in nvme_zns_append_args
Avoid any holes in the struct by rearranging the members. Also add the
attribute packed to struct definition to reduce ABI breakage.
struct nvme_zns_append_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u64 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
__u64 zslba; /* 24 8 */
__u16 nlb; /* 32 2 */
__u16 control; /* 34 2 */
__u32 ilbrt; /* 36 4 */
__u16 lbat; /* 40 2 */
__u16 lbatm; /* 42 2 */
__u32 data_len; /* 44 4 */
void * data; /* 48 8 */
void * metadata; /* 56 8 */
/* --- cacheline 1 boundary (64 bytes) --- */
__u32 metadata_len; /* 64 4 */
/* size: 72, cachelines: 2, members: 15 */
/* padding: 4 */
/* last cacheline: 8 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 727b8b0 commit 2fa9cf6
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4052 | 4052 | | |
4053 | 4053 | | |
4054 | 4054 | | |
| 4055 | + | |
| 4056 | + | |
4055 | 4057 | | |
4056 | 4058 | | |
4057 | 4059 | | |
| |||
4061 | 4063 | | |
4062 | 4064 | | |
4063 | 4065 | | |
4064 | | - | |
4065 | 4066 | | |
4066 | | - | |
4067 | | - | |
| 4067 | + | |
4068 | 4068 | | |
4069 | 4069 | | |
4070 | 4070 | | |
4071 | 4071 | | |
| 4072 | + | |
| 4073 | + | |
4072 | 4074 | | |
4073 | 4075 | | |
4074 | 4076 | | |
| |||
4078 | 4080 | | |
4079 | 4081 | | |
4080 | 4082 | | |
4081 | | - | |
4082 | 4083 | | |
4083 | | - | |
4084 | | - | |
4085 | | - | |
| 4084 | + | |
| 4085 | + | |
4086 | 4086 | | |
4087 | 4087 | | |
4088 | 4088 | | |
| |||
0 commit comments