hammer2 - Fix panic related to the accounting for pfs-create
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Sep 2017 05:01:03 +0000 (22:01 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Sep 2017 05:01:03 +0000 (22:01 -0700)
commitc42feed66acbf22ef5c9020869d16a2abe67778f
treed138c78d28ae55bb317eca8cef6c2c1e6a9547b2
parent28efb08b59554982eb3821fe0667704282992817
hammer2 - Fix panic related to the accounting for pfs-create

* Properly disconnect the inode created by pfs-create from the spmp so it
  can be reassociated with the pmp.

* Do not allow the newly created inode to be emplaced on the spmp's sideq,
  which will cause a duplicate inode structure to be created if the
  pfs is then mounted.

Reported-by: Romick
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_flush.c
sys/vfs/hammer2/hammer2_inode.c
sys/vfs/hammer2/hammer2_ioctl.c