Commit 9f6b2bd
committed
ioctl: Rearrange members in nvme_resv_release_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_resv_release_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
enum nvme_resv_rtype rtype; /* 24 4 */
enum nvme_resv_rrela rrela; /* 28 4 */
__u64 crkey; /* 32 8 */
_Bool iekey; /* 40 1 */
/* size: 48, cachelines: 1, members: 9 */
/* padding: 7 */
/* last cacheline: 48 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent a4304bc commit 9f6b2bd
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3872 | 3872 | | |
3873 | 3873 | | |
3874 | 3874 | | |
| 3875 | + | |
| 3876 | + | |
3875 | 3877 | | |
3876 | 3878 | | |
3877 | 3879 | | |
3878 | | - | |
3879 | 3880 | | |
3880 | | - | |
3881 | | - | |
| 3881 | + | |
3882 | 3882 | | |
3883 | 3883 | | |
3884 | 3884 | | |
3885 | 3885 | | |
| 3886 | + | |
| 3887 | + | |
3886 | 3888 | | |
3887 | 3889 | | |
3888 | 3890 | | |
3889 | | - | |
3890 | 3891 | | |
3891 | | - | |
3892 | | - | |
3893 | | - | |
| 3892 | + | |
| 3893 | + | |
3894 | 3894 | | |
3895 | 3895 | | |
3896 | 3896 | | |
| |||
0 commit comments