mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-12 02:35:41 -04:00
Merge branch 'for-linus' into for-next
Pull 7.2 devel branch for put_device auto-clean fixes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -598,7 +598,7 @@ struct btrfs_ioctl_search_args_v2 {
|
||||
__u64 buf_size; /* in - size of buffer
|
||||
* out - on EOVERFLOW: needed size
|
||||
* to store item */
|
||||
__u64 buf[]; /* out - found items */
|
||||
__u8 buf[]; /* out - found items */
|
||||
};
|
||||
|
||||
/* With a @src_length of zero, the range from @src_offset->EOF is cloned! */
|
||||
|
||||
@@ -23,7 +23,7 @@ enum {
|
||||
IO_URING_QUERY_OPCODES = 0,
|
||||
IO_URING_QUERY_ZCRX = 1,
|
||||
IO_URING_QUERY_SCQ = 2,
|
||||
IO_URING_QUERY_ZCRX_NOTIF = 3,
|
||||
IO_URING_QUERY_ZCRX_EVENT = 3,
|
||||
|
||||
__IO_URING_QUERY_MAX,
|
||||
};
|
||||
@@ -63,13 +63,13 @@ struct io_uring_query_zcrx {
|
||||
__u64 __resv2;
|
||||
};
|
||||
|
||||
struct io_uring_query_zcrx_notif {
|
||||
/* Bitmask of supported ZCRX_NOTIF_* flags */
|
||||
__u32 notif_flags;
|
||||
/* Size of io_uring_zcrx_notif_stats */
|
||||
__u32 notif_stats_size;
|
||||
struct io_uring_query_zcrx_event {
|
||||
/* Bitmask of supported ZCRX_EVENT_* flags */
|
||||
__u32 event_flags;
|
||||
/* Size of zcrx_stats */
|
||||
__u32 stats_size;
|
||||
/* Required alignment for the stats struct within the region (ie stats_offset) */
|
||||
__u32 notif_stats_off_alignment;
|
||||
__u32 stats_off_alignment;
|
||||
__u32 __resv1;
|
||||
__u64 __resv2[4];
|
||||
};
|
||||
|
||||
@@ -65,30 +65,30 @@ enum zcrx_features {
|
||||
* value in struct io_uring_zcrx_ifq_reg::rx_buf_len.
|
||||
*/
|
||||
ZCRX_FEATURE_RX_PAGE_SIZE = 1 << 0,
|
||||
ZCRX_FEATURE_NOTIFICATION = 1 << 1,
|
||||
ZCRX_FEATURE_EVENT = 1 << 1,
|
||||
};
|
||||
|
||||
enum zcrx_notification_type {
|
||||
ZCRX_NOTIF_NO_BUFFERS,
|
||||
ZCRX_NOTIF_COPY,
|
||||
enum zcrx_event_type {
|
||||
ZCRX_EVENT_ALLOC_FAIL,
|
||||
ZCRX_EVENT_COPY,
|
||||
|
||||
__ZCRX_NOTIF_TYPE_LAST,
|
||||
__ZCRX_EVENT_TYPE_LAST,
|
||||
};
|
||||
|
||||
enum zcrx_notification_desc_flags {
|
||||
/* If set, stats_offset holds a valid offset to a notif_stats struct */
|
||||
ZCRX_NOTIF_DESC_FLAG_STATS = 1 << 0,
|
||||
enum zcrx_event_desc_flags {
|
||||
/* If set, stats_offset holds a valid offset to a zcrx_stats struct */
|
||||
ZCRX_EVENT_DESC_FLAG_STATS = 1 << 0,
|
||||
};
|
||||
|
||||
struct zcrx_notif_stats {
|
||||
struct zcrx_stats {
|
||||
__u64 copy_count; /* cumulative copy-fallback CQEs */
|
||||
__u64 copy_bytes; /* cumulative bytes copied */
|
||||
};
|
||||
|
||||
struct zcrx_notification_desc {
|
||||
struct zcrx_event_desc {
|
||||
__u64 user_data;
|
||||
__u32 type_mask;
|
||||
__u32 flags; /* see enum zcrx_notification_desc_flags */
|
||||
__u32 flags; /* see enum zcrx_event_desc_flags */
|
||||
__u64 stats_offset; /* offset from the beginning of refill ring region for stats */
|
||||
__u64 __resv2[9];
|
||||
};
|
||||
@@ -108,14 +108,14 @@ struct io_uring_zcrx_ifq_reg {
|
||||
struct io_uring_zcrx_offsets offsets;
|
||||
__u32 zcrx_id;
|
||||
__u32 rx_buf_len;
|
||||
__u64 notif_desc; /* see struct zcrx_notification_desc */
|
||||
__u64 event_desc; /* see struct zcrx_event_desc */
|
||||
__u64 __resv[2];
|
||||
};
|
||||
|
||||
enum zcrx_ctrl_op {
|
||||
ZCRX_CTRL_FLUSH_RQ,
|
||||
ZCRX_CTRL_EXPORT,
|
||||
ZCRX_CTRL_ARM_NOTIFICATION,
|
||||
ZCRX_CTRL_ARM_EVENT,
|
||||
|
||||
__ZCRX_CTRL_LAST,
|
||||
};
|
||||
@@ -129,8 +129,8 @@ struct zcrx_ctrl_export {
|
||||
__u32 __resv1[11];
|
||||
};
|
||||
|
||||
struct zcrx_ctrl_arm_notif {
|
||||
__u32 notif_type;
|
||||
struct zcrx_ctrl_arm_event {
|
||||
__u32 event_type; /* see enum zcrx_event_type */
|
||||
__u32 __resv[11];
|
||||
};
|
||||
|
||||
@@ -142,7 +142,7 @@ struct zcrx_ctrl {
|
||||
union {
|
||||
struct zcrx_ctrl_export zc_export;
|
||||
struct zcrx_ctrl_flush_rq zc_flush;
|
||||
struct zcrx_ctrl_arm_notif zc_arm_notif;
|
||||
struct zcrx_ctrl_arm_event zc_arm_event;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user