tmpfs - fix failing writes with no swap
authorAlex Hornung <ahornung@gmail.com>
Sat, 10 Jul 2010 21:10:27 +0000 (22:10 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 10 Jul 2010 22:09:48 +0000 (23:09 +0100)
commitb7545cb3ff9d0e0490a2453779b029252346d511
treebf4fa94bfdd4945f22ced953ebaa98fded6ab90a
parentbe36369df85afceebd0c8caca4b22f6e7a147f4f
tmpfs - fix failing writes with no swap

* When no swap is available, tmpfs was trying to use bawrite, causing
  some further problems down the line. We avoid this by now forcing the
  use of buwrite() for this case (no swap).

Suggested-by: Matt Dillon
sys/vfs/tmpfs/tmpfs_vnops.c