aio_biowakeup: Various style fixes.

This commit is contained in:
John Baldwin 2023-02-15 10:57:08 -08:00
parent 40734fc57e
commit cca6d6160f

View File

@ -2480,9 +2480,10 @@ aio_biowakeup(struct bio *bp)
aio_biocleanup(bp);
nbytes =bcount - resid;
nbytes = bcount - resid;
atomic_add_acq_long(&job->nbytes, nbytes);
nblks = btodb(nbytes);
/*
* If multiple bios experienced an error, the job will reflect the
* error of whichever failed bio completed last.
@ -2494,7 +2495,6 @@ aio_biowakeup(struct bio *bp)
else
atomic_add_int(&job->inblock, nblks);
if (atomic_fetchadd_int(&job->nbio, -1) == 1) {
if (atomic_load_int(&job->error))
aio_complete(job, -1, job->error);