Page MenuHomeFreeBSD

jail: Simplify refcount manipulation routines
ClosedPublic

Authored by markj on Thu, Sep 24, 1:52 PM.
Tags
None
Referenced Files
F173455942: D59983.id187691.diff
Sat, Sep 26, 2:09 AM
F173441897: D59983.diff
Fri, Sep 25, 11:17 PM
F173372898: D59983.id187599.diff
Fri, Sep 25, 12:59 PM
Unknown Object (File)
Fri, Sep 25, 4:49 AM
Unknown Object (File)
Fri, Sep 25, 4:43 AM
Unknown Object (File)
Fri, Sep 25, 3:02 AM
Unknown Object (File)
Fri, Sep 25, 2:40 AM
Unknown Object (File)
Fri, Sep 25, 1:38 AM
Subscribers

Details

Summary
  • refcount_acquire() returns the old value, use that to assert that the old value was non-zero.
  • refcount_release() already asserts that the refcount value is non-zero, so don't bother asserting that again in the jail code.
  • Use __diagused instead of having separate implementations for INVARIANTS and !INVARIANTS.

No functional change intended.

Diff Detail

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