kernel - Fix memory starvation issue w/tmpfs
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 5 Dec 2012 19:40:01 +0000 (11:40 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 5 Dec 2012 19:40:01 +0000 (11:40 -0800)
commita780f9224b71e3886dceb5b107f798ea741eb176
treee5c0cb26d8052163f405209e248162b8605db8d4
parent34dfeb57ebc9d43f754e448f45e3ded426b325fc
kernel - Fix memory starvation issue w/tmpfs

* TMPFS relies on the pagedaemon to retire dirty pages to swap.  The normal
  buffer cache flushing won't do the job (nor do we want it to).  To avoid
  starving the system we change bio_page_alloc() to not dig into the
  system reserve when allocating pages for TMPFS.

Reported-by: tuxillo (Antonio Huete)
sys/kern/vfs_bio.c