Restore the td_cookie value for the tmpfs directory entry which was a
authorkib <kib@FreeBSD.org>
Fri, 19 Jun 2015 07:25:15 +0000 (07:25 +0000)
committerkib <kib@FreeBSD.org>
Fri, 19 Jun 2015 07:25:15 +0000 (07:25 +0000)
commitf69fd0ed6d9cc35a9874eddf3c559c601786d3ee
treef311a9c95127169d754f3f16222a627a88f107db
parent2aa336795a692258f62c9319a25636837758d81b
Restore the td_cookie value for the tmpfs directory entry which was a
dup entry, upon detach from the parent directory.  If the node is
renamed, the entry is re-attached at the different directory, and
invalud cookie value triggers assert (or corrupts directory rb tree,
it seems).

Reported by: clusteradm (gjb, antoine)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/fs/tmpfs/tmpfs_subr.c