HomeFreeBSD

tmpfs: skip zero-sized page count updates

Description

tmpfs: skip zero-sized page count updates

Such updates consisted of vast majority of modificiations, especially
in tmpfs_reg_resize.

For the case where page count did no change and the size grew we only
need to update tn_size. Use this fact to avoid vm object lock/relock.

MFC after: 1 week

Details

Provenance
mjgAuthored on
Parents
rS324126: MFC r323785
Branches
Unknown
Tags
Unknown