DragonFly BSD
DragonFly commits List (threaded) for 2011-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix various memory & swap leaks in tmpfs


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Sep 2011 23:28:34 -0700 (PDT)

commit a1fa5d8d095e6aa52c4a9ac5d2ab52b03fee54b9
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed Sep 14 23:25:03 2011 -0700

    kernel - Fix various memory & swap leaks in tmpfs
    
    * tmpfs was using a vref() instead of a vget() (cache_vget() to be precise)
      which does not necessarily reactivate an inactive vnode.  This can cause
      the vnode to languish in the vnode cache even when the underlying file
      has been removed and no longer has any open() descriptors.
    
    * tmpfs_nrmdir(), tmpfs_nremove(), and tmpfs_nrename() (for target replacement
      renames) was effected.
    
    Reported-by: sephe and others, tested by sephe, dillon

Summary of changes:
 sys/vfs/tmpfs/tmpfs_vnops.c |   59 +++++++++++++++++++++++++++++-------------
 1 files changed, 41 insertions(+), 18 deletions(-)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]