summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-01-08 20:48:26 +0000
committeralc <alc@FreeBSD.org>2004-01-08 20:48:26 +0000
commit9f7878e05ab8473614dbd02b348aced4f69c8f39 (patch)
tree93969e6896f2afbaefcb25fb23dc6cfbc7fa03cb /usr.sbin/mtree
parentc87939ff3b0d7321c03632991a1435fd009a8763 (diff)
downloadFreeBSD-src-9f7878e05ab8473614dbd02b348aced4f69c8f39.zip
FreeBSD-src-9f7878e05ab8473614dbd02b348aced4f69c8f39.tar.gz
- Enable recursive acquisition of the mutex synchronizing access to the
free pages queue. This is presently needed by contigmalloc1(). - Move a sanity check against attempted double allocation of two pages to the same vm object offset from vm_page_alloc() to vm_page_insert(). This provides better protection because double allocation could occur through a direct call to vm_page_insert(), such as that by vm_page_rename(). - Modify contigmalloc1() to hold the mutex synchronizing access to the free pages queue while it scans vm_page_array in search of free pages. - Correct a potential leak of pages by contigmalloc1() that I introduced in revision 1.20: We must convert all cache queue pages to free pages before we begin removing free pages from the free queue. Otherwise, if we have to restart the scan because we are unable to acquire the vm object lock that is necessary to convert a cache queue page to a free page, we leak those free pages already removed from the free queue.
Diffstat (limited to 'usr.sbin/mtree')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud