Page MenuHomeFreeBSD

loader bcache: Refactor adjustment of ra
ClosedPublic

Authored by cperciva on Oct 1 2021, 4:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 11:43 PM
Unknown Object (File)
Sun, Nov 3, 4:07 PM
Unknown Object (File)
Sun, Nov 3, 4:01 PM
Unknown Object (File)
Oct 23 2024, 11:58 PM
Unknown Object (File)
Oct 20 2024, 10:12 PM
Unknown Object (File)
Oct 9 2024, 8:40 AM
Unknown Object (File)
Oct 9 2024, 8:39 AM
Unknown Object (File)
Oct 9 2024, 8:39 AM
Subscribers

Details

Summary

This will make future changes cleaner. No functional change intended.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

It does feel wrong to have two if (complete) blocks in a row, perhaps it isworth to factor ra update out to separate function at some time...

This revision is now accepted and ready to land.Oct 1 2021, 7:21 AM

It does feel wrong to have two if (complete) blocks in a row, perhaps it isworth to factor ra update out to separate function at some time...

I considered that, but since this is the only place we adjust bc->ra it seemed like an unnecessary complication to add a new function; at least now the changes are collected together in one place.

The entire function could probably do with being refactored and/or restyled, but that seemed like something which could wait.

It does feel wrong to have two if (complete) blocks in a row, perhaps it isworth to factor ra update out to separate function at some time...

I considered that, but since this is the only place we adjust bc->ra it seemed like an unnecessary complication to add a new function; at least now the changes are collected together in one place.

The entire function could probably do with being refactored and/or restyled, but that seemed like something which could wait.

ack.