diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-08 20:06:53 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-08 20:08:06 -0800 |
commit | 8bb8b74db9cf1c527152118b421d50e191bc214d (patch) | |
tree | 85f1a1043637e363cbfdab83b89f7380db1d3cd1 /src/iou.c | |
parent | 87ce3470bab09aa2d917fecd7401b9dfe09905d2 (diff) |
iou: s/entries/n_entries/ in iou_resize()
Mechanical rename for clarity and consistency sake
Diffstat (limited to 'src/iou.c')
-rw-r--r-- | src/iou.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -423,7 +423,7 @@ int iou_quit(iou_t *iou) } -/* Resize the underlying io_uring to entries. +/* Resize the underlying io_uring to n_entries. * * This can only be done when there's nothing queued or submitted, since * it's essentially tearing down and recreating everything including the @@ -434,15 +434,15 @@ int iou_quit(iou_t *iou) * bootstrap you learn necessary depths to accomodate subsequent operations * and need to resize accordingly. */ -int iou_resize(iou_t *iou, unsigned entries) +int iou_resize(iou_t *iou, unsigned n_entries) { assert(iou); - assert(entries); + assert(n_entries); assert(!(iou->n_issued + iou->n_queued + iou->n_submitted)); io_uring_queue_exit(&iou->ring); - return io_uring_queue_init(entries, &iou->ring, 0); + return io_uring_queue_init(n_entries, &iou->ring, 0); } |