Skip to content

Commit f0ed36a

Browse files
stefano-garzarellastefanhaRH
authored andcommitted
iothread: rename PollParamInfo to IOThreadParamInfo
Commit 1793ad0 ("iothread: add aio-max-batch parameter") added a new parameter (aio-max-batch) to IOThread and used PollParamInfo structure to handle it. Since it is not a parameter of the polling mechanism, we rename the structure to a more generic IOThreadParamInfo. Suggested-by: Kevin Wolf <[email protected]> Signed-off-by: Stefano Garzarella <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>
1 parent ca61fa4 commit f0ed36a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

iothread.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,26 +215,26 @@ static void iothread_complete(UserCreatable *obj, Error **errp)
215215
typedef struct {
216216
const char *name;
217217
ptrdiff_t offset; /* field's byte offset in IOThread struct */
218-
} PollParamInfo;
218+
} IOThreadParamInfo;
219219

220-
static PollParamInfo poll_max_ns_info = {
220+
static IOThreadParamInfo poll_max_ns_info = {
221221
"poll-max-ns", offsetof(IOThread, poll_max_ns),
222222
};
223-
static PollParamInfo poll_grow_info = {
223+
static IOThreadParamInfo poll_grow_info = {
224224
"poll-grow", offsetof(IOThread, poll_grow),
225225
};
226-
static PollParamInfo poll_shrink_info = {
226+
static IOThreadParamInfo poll_shrink_info = {
227227
"poll-shrink", offsetof(IOThread, poll_shrink),
228228
};
229-
static PollParamInfo aio_max_batch_info = {
229+
static IOThreadParamInfo aio_max_batch_info = {
230230
"aio-max-batch", offsetof(IOThread, aio_max_batch),
231231
};
232232

233233
static void iothread_get_param(Object *obj, Visitor *v,
234234
const char *name, void *opaque, Error **errp)
235235
{
236236
IOThread *iothread = IOTHREAD(obj);
237-
PollParamInfo *info = opaque;
237+
IOThreadParamInfo *info = opaque;
238238
int64_t *field = (void *)iothread + info->offset;
239239

240240
visit_type_int64(v, name, field, errp);
@@ -244,7 +244,7 @@ static bool iothread_set_param(Object *obj, Visitor *v,
244244
const char *name, void *opaque, Error **errp)
245245
{
246246
IOThread *iothread = IOTHREAD(obj);
247-
PollParamInfo *info = opaque;
247+
IOThreadParamInfo *info = opaque;
248248
int64_t *field = (void *)iothread + info->offset;
249249
int64_t value;
250250

0 commit comments

Comments
 (0)