diff options
author | jchandra <jchandra@FreeBSD.org> | 2010-08-06 07:32:33 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2010-08-06 07:32:33 +0000 |
commit | c17c1b915d3111d18a76bf56ac4f95d6a2cf5c17 (patch) | |
tree | e0f0fcc88e0e111a74d1986fc32557144318d35f /sys/fs/devfs/devfs_vnops.c | |
parent | 6639a8f4cb6eacd78ac589888cd2475908d6d243 (diff) | |
download | FreeBSD-src-c17c1b915d3111d18a76bf56ac4f95d6a2cf5c17.zip FreeBSD-src-c17c1b915d3111d18a76bf56ac4f95d6a2cf5c17.tar.gz |
Fix the issue reported by alc:
pmap_page_wired_mappings() counts the number of pv entries for the
specified page that have the pv entry wired flag set to TRUE.
pmap_enter() correctly initializes this flag. However,
pmap_change_wiring() doesn't update the corresponding pv entry flag,
only the PTE. So, the count returned by pmap_page_wired_mappings()
will sometimes be wrong.
In the short term, the best fix would be to eliminate the pv entry
flag and use only the PTE. That flag is wasting non-trivial memory.
Remove pv_wired flag, and use PTE flag to count the wired mappings.
Reviewed by: alc
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
0 files changed, 0 insertions, 0 deletions