Page MenuHomeFreeBSD

tmpfs: enforce size limit on writes when file system size is default
ClosedPublic

Authored by karels on Dec 12 2023, 10:49 PM.
Tags
None
Referenced Files
F140278900: D43010.id131293.diff
Mon, Dec 22, 4:44 AM
Unknown Object (File)
Tue, Nov 25, 11:49 PM
Unknown Object (File)
Tue, Nov 25, 11:49 PM
Unknown Object (File)
Sat, Nov 22, 7:38 PM
Unknown Object (File)
Nov 12 2025, 11:23 PM
Unknown Object (File)
Nov 12 2025, 11:11 PM
Unknown Object (File)
Nov 12 2025, 11:11 PM
Unknown Object (File)
Nov 12 2025, 9:53 PM
Subscribers

Details

Summary

tmpfs enforced the file system size limit on writes for file systems
with a specified size, but not when the size was the default. Add
enforcement when the size is default: do not allocate additional
pages if the available memory + swap falls to the reserve level.
Note, enforcement is also done when attempting to create a file,
both with and without an explicit file system size.

PR: 275436
MFC after: 1 month

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54909
Build 51798: arc lint + arc unit

Event Timeline

Any questions or comments on this review?

Looks straight forward to me.

This revision is now accepted and ready to land.Dec 18 2023, 2:07 AM