git: tmpfs - Handle low memory situations a little better

Matthew Dillon dillon at
Wed Jun 26 17:58:20 PDT 2013

commit 3c54bb74e9a98e332ae20757f62d0aeb3c2267c9
Author: Matthew Dillon <dillon at>
Date:   Wed Jun 26 17:34:58 2013 -0700

    tmpfs - Handle low memory situations a little better
    * When memory starts to get low start bdwrite()ing buffers on file
      write instead of buwrite()ing them to force the data to start staging
      through the buffer cache.
    * Rename some generic defines BSIZE / BMASK -< TMPFS_BLKSIZE / TMPFS_BLKMASK
    * Set b_act_count to 0 and B_RELBUF in the pageout case to force the
      underlying VM pages to recycle to the inactive queue after the I/O is

Summary of changes:
 sys/vfs/tmpfs/tmpfs.h       |  5 +++--
 sys/vfs/tmpfs/tmpfs_subr.c  |  7 ++++---
 sys/vfs/tmpfs/tmpfs_vnops.c | 44 ++++++++++++++++++++++++++++++++++----------
 3 files changed, 41 insertions(+), 15 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list