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
Unknown Object (File)
Mon, Nov 4, 7:01 AM
Unknown Object (File)
Thu, Oct 31, 9:49 AM
Unknown Object (File)
Thu, Oct 24, 5:08 PM
Unknown Object (File)
Mon, Oct 21, 9:58 AM
Unknown Object (File)
Sun, Oct 20, 1:13 AM
Unknown Object (File)
Sat, Oct 19, 11:33 PM
Unknown Object (File)
Sat, Oct 19, 10:43 PM
Unknown Object (File)
Tue, Oct 15, 12:17 PM
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!