hammer2 - Fix kmalloc pool blowout on low-memory machines
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 24 May 2018 00:25:44 +0000 (17:25 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 24 May 2018 00:25:44 +0000 (17:25 -0700)
commit257c2728e91a64c618591de50d1a41f40882ceea
treefa76bdf67bec52162d89c517c8b283839f885044
parentc369667e3be1de7c09aa714f98c45c092acc3548
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
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_bulkfree.c
sys/vfs/hammer2/hammer2_flush.c
sys/vfs/hammer2/hammer2_ioctl.c
sys/vfs/hammer2/hammer2_strategy.c
sys/vfs/hammer2/hammer2_synchro.c
sys/vfs/hammer2/hammer2_vfsops.c
sys/vfs/hammer2/hammer2_vnops.c