git: tmpfs - Fix bug in page-free bypass path

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Apr 29 20:08:14 PDT 2020


commit 965c458c932cc375c59ca2e7eae94f724dd90182
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Apr 29 20:05:13 2020 -0700

    tmpfs - Fix bug in page-free bypass path
    
    * tmpfs moves pages between two objects in order to allow data to
      be paged to swap.  Tmpfs makes an optimization to evict pages
      that are already backed by swap when reclaiming a vnode.
    
      Fix a bug in this code which can sometimes attempt to free a VM
      page which is still flagged PG_MAPPED, causing an assertion and
      panic.  The page is not mapped at this point in time but the meaning
      of the flag has changed somewhat and the flag can still be left
      set by the time the page gets to this bit of code.

Summary of changes:
 sys/vfs/tmpfs/tmpfs_vnops.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/965c458c932cc375c59ca2e7eae94f724dd90182


-- 
DragonFly BSD source repository



More information about the Commits mailing list