kernel - Use kmalloc_obj for more zones - step 1b
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 22 Mar 2021 01:50:49 +0000 (18:50 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 22 Mar 2021 02:28:46 +0000 (19:28 -0700)
commit5b3b84424f6bfcb5eb06ad9dcd7a29cfd895a39e
tree7bed69aa075ebb6e82a949cb2eddcc5d9d402cc5
parent88da688c9b9d7a4a445c19e329bcba406507c19a
kernel - Use kmalloc_obj for more zones - step 1b

* Use kmalloc_obj for M_FILE (struct file).

* Use kmalloc_obj for hammer2_io structures.

* Use kmalloc_obj for nfsnode structures, and make it per-mount.

  I don't know if its a good idea to make it per-mount or not.
  As the number of nodes is limited by kern.maxvnodes, it might
  be better to have a global M_NFSNODE kmalloc_obj zone instead
  of a per-mount one.

  (same goes with hammer2_io and hammer2_inode, which are also
  per-mount atm).
sys/kern/kern_descrip.c
sys/sys/file.h
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_io.c
sys/vfs/hammer2/hammer2_vfsops.c
sys/vfs/nfs/nfs.h
sys/vfs/nfs/nfs_node.c
sys/vfs/nfs/nfs_subs.c
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/nfs/nfsmount.h