summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2014-05-13 05:21:54 +0000
committeralc <alc@FreeBSD.org>2014-05-13 05:21:54 +0000
commit498371bb43d94d13fdf5c8bb2c7014840ec696ab (patch)
tree82b45223efd8c9ff8db0dd4b5e8fe6de1a7bbe90 /sys/netinet/in_proto.c
parent2a67370d6908eb7a4340689dfc266e7e591d301f (diff)
downloadFreeBSD-src-498371bb43d94d13fdf5c8bb2c7014840ec696ab.zip
FreeBSD-src-498371bb43d94d13fdf5c8bb2c7014840ec696ab.tar.gz
MFC r260567
Correctly update the count of stuck pages, "addl_page_shortage", in vm_pageout_scan(). There were missing increments in two less common cases. Don't conflate the count of stuck pages and the pageout deficit provided by vm_page_alloc{,_contig}(). Handle held pages consistently in the inactive queue scan. In the more common case, we did not move the page to the tail of the queue. Whereas, in the less common case, we did. There's no particular reason to move the page in the less common case, so remove it. Perform the calculation of the page shortage for the active queue scan a little earlier, before the active queue lock is acquired. The correctness of this calculation doesn't depend on the active queue lock being held. Eliminate a redundant variable, "pcount". Use the more descriptive variable, "maxscan", in its place. Apply a few nearby style fixes, e.g., eliminate stray whitespace and excess parentheses.
Diffstat (limited to 'sys/netinet/in_proto.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud