Page MenuHomeFreeBSD

vm_object: Add wrapper for bumping generation counter
AbandonedPublic

Authored by bnovkov on Thu, Oct 10, 9:39 PM.
Tags
None
Referenced Files
F100363557: D47047.diff
Tue, Oct 15, 12:17 PM
Unknown Object (File)
Sat, Oct 12, 8:27 PM
Unknown Object (File)
Sat, Oct 12, 8:31 AM
Subscribers

Details

Reviewers
markj
alc
kib

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59893
Build 56778: arc lint + arc unit

Event Timeline

sys/vm/vm_object.c
2344

Where is this used? I can't find it in the rest of the patch stack.

Why is it ever necessary to bump the counter by more than 1? Consumers (should) only care about whether it changed relative to a previously loaded value, and not about the magnitude of the difference.

bnovkov added inline comments.
sys/vm/vm_object.c
2344

Where is this used? I can't find it in the rest of the patch stack.

It is used in the vm_radixdone's batch counterpart.

Why is it ever necessary to bump the counter by more than 1? Consumers (should) only care about whether it changed relative to a previously loaded value, and not about the magnitude of the difference.

I agree with you on this, but I eventually opted for replicating the behavior of calling vm_page_alloc in a loop, just to avoid inadvertently breaking something unrelated to this change.

However, seeing as you pretty much confirmed that this does not matter I'll go ahead and drop the review, thanks!