git: kernel - allow PG_NOTMETA to be set on regular files too

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Apr 2 16:10:24 PDT 2011


commit bfa86281b980fee652fa89f854faf34a4b9689ad
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Apr 2 16:05:58 2011 -0700

    kernel - allow PG_NOTMETA to be set on regular files too
    
    * Allow this flag to be set for VM pages associated with regular files
      too, the flag prevents the related VM page from being swapcache'd.
    
      The flag is set by HAMMER on normal file buffer cache buffers when
      double buffering is enabled to prevent swapcache from caching the
      data twice.
    
    * This also fixes an issue when a large number of files exceeding the
      maxvnode limit are recycled, and double buffering is enabled along
      with vm.swapcache.data_enable.  We do not want swapcache to try to
      cache the pages via the vnode, instead we'd rather it cache them
      via the block device (whos vnode doesn't get recycled).

Summary of changes:
 sys/vm/swap_pager.h   |    2 ++
 sys/vm/vm_swapcache.c |   21 +++++++++++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfa86281b980fee652fa89f854faf34a4b9689ad


-- 
DragonFly BSD source repository





More information about the Commits mailing list