Page MenuHomeFreeBSD

vfs: refactor vnode allocation
ClosedPublic

Authored by mjg on Jan 13 2020, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 4:27 PM
Unknown Object (File)
Thu, Mar 28, 12:15 PM
Unknown Object (File)
Feb 29 2024, 8:19 AM
Unknown Object (File)
Jan 20 2024, 12:02 AM
Unknown Object (File)
Jan 9 2024, 3:00 PM
Unknown Object (File)
Dec 23 2023, 1:31 AM
Unknown Object (File)
Dec 14 2023, 12:51 PM
Unknown Object (File)
Oct 16 2023, 10:55 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 28644

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

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

1537

Style recommends putting binary op on the previous line.

1545

You can unlock vnode_list_mtx before wakeup.

This revision was automatically updated to reflect the committed changes.