From 8bb8b74db9cf1c527152118b421d50e191bc214d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 8 Mar 2022 20:06:53 -0800 Subject: iou: s/entries/n_entries/ in iou_resize() Mechanical rename for clarity and consistency sake --- src/iou.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/iou.c') diff --git a/src/iou.c b/src/iou.c index 3e12ecc..c1319f7 100644 --- a/src/iou.c +++ b/src/iou.c @@ -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); } -- cgit v1.2.3