Page MenuHomeFreeBSD

vfs: refactor vnode allocation
ClosedPublic

Authored by mjg on Jan 13 2020, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 16, 9:02 PM
Unknown Object (File)
Fri, May 16, 6:07 AM
Unknown Object (File)
Wed, May 7, 2:17 PM
Unknown Object (File)
Tue, May 6, 7:51 AM
Unknown Object (File)
Apr 19 2025, 2:29 AM
Unknown Object (File)
Apr 16 2025, 10:32 PM
Unknown Object (File)
Apr 14 2025, 9:15 PM
Unknown Object (File)
Mar 7 2025, 11:29 PM
Subscribers

Details

Summary

Semantics are preserved. One benefit is that there are fewer accesses to both numvnodes and freevnodes.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I do not object to this patch but I would be more comfortable with kib reviewing.

This revision is now accepted and ready to land.Jan 15 2020, 11:45 PM
kib added inline comments.
sys/kern/vfs_subr.c
1508 ↗(On Diff #66700)

Small change is that cyclecount was zeroed before when numvnodes < desiredvnodes.

1537 ↗(On Diff #66700)

Style recommends putting binary op on the previous line.

1545 ↗(On Diff #66700)

You can unlock vnode_list_mtx before wakeup.

This revision was automatically updated to reflect the committed changes.