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

Matthew Dillon dillon at crater.dragonflybsd.org
Wed May 23 17:27:07 PDT 2018


commit 257c2728e91a64c618591de50d1a41f40882ceea
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/257c2728e91a64c618591de50d1a41f40882ceea


-- 
DragonFly BSD source repository



More information about the Commits mailing list