HomeFreeBSD

tmpfs: check residence in data_locked

Description

tmpfs: check residence in data_locked

tmpfs_seek_data_locked should return the offset of the first page
either resident in memory or in swap, but may return an offset to a
nonresident page. Check for residence to fix that.

Reviewed by: alc, kib
Differential Revision: https://reviews.freebsd.org/D46879

Details

Provenance
dougmAuthored on Fri, Oct 4, 7:44 AM
Reviewer
alc
Differential Revision
D46879: tmpfs: check residence in data_locked
Parents
rG64b0f52be2c9: ctl: limit memory allocation in pci_virtio_scsi
Branches
Unknown
Tags
Unknown