vm_ooffset_t is now unsigned. Remove some tests for negative values,
or make other adjustments accordingly.
|178 ↗||(On Diff #76285)|
I think this should be size_t, and before subtraction, the check should be made to return 0.
|2620–2630 ↗||(On Diff #76285)|
I believe the comment is still valid, it depends on the vm_ooffset_t being type-punned for off_t. Check below (foff > OFF_MAX-size) ensures that we do not require fs to mmap pass OFF_MAX.
|183 ↗||(On Diff #76325)|
To make this pedantically correct I believe you have to use atomic_load_long(&tmpfs_pages_reserved). There is nothing preventing the compiler from loading tmpfs_pages_reserved twice.