HomeFreeBSD

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

Description

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

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
Reviewed by: cy
Differential Revision: https://reviews.freebsd.org/D43010

Details

Provenance
karelsAuthored on Dec 19 2023, 3:32 PM
Reviewer
cy
Differential Revision
D43010: tmpfs: enforce size limit on writes when file system size is default
Parents
rG2134b35e0f71: stress2: Fix "-Wunused-but-set-variable" warnings. Style fixes, while here
Branches
Unknown
Tags
Unknown