git: DragonFly_RELEASE_5_2 hammer2 - Fix kmalloc pool blowout on low-memory machines

Matthew Dillon dillon at crater.dragonflybsd.org
Wed May 23 17:29:49 PDT 2018


commit ed8678aec6610081b41697b983f34e45d169a52f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed May 23 17:25:44 2018 -0700

    hammer2 - Fix kmalloc pool blowout on low-memory machines
    
    * Fix a kmalloc pool blown that can occur on low-memory machines due
      to too many disconnected hammer2_inode structures building up.
    
    * Was previously fixed for things like rm -rf and bulk renames,
      but not for setattr (aka chown/chmod -R ops).
    
    Reported-by: gjs278

Summary of changes:
 sys/vfs/hammer2/hammer2.h          |  2 +-
 sys/vfs/hammer2/hammer2_bulkfree.c |  2 +-
 sys/vfs/hammer2/hammer2_flush.c    | 16 ++++++++++++++--
 sys/vfs/hammer2/hammer2_ioctl.c    | 12 ++++++------
 sys/vfs/hammer2/hammer2_strategy.c |  2 +-
 sys/vfs/hammer2/hammer2_synchro.c  |  2 +-
 sys/vfs/hammer2/hammer2_vfsops.c   | 10 +++++-----
 sys/vfs/hammer2/hammer2_vnops.c    | 28 ++++++++++++----------------
 8 files changed, 41 insertions(+), 33 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list