diff options
author | kib <kib@FreeBSD.org> | 2015-06-26 06:25:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-06-26 06:25:14 +0000 |
commit | 575dc6a9d530f03d502c31513fc2e432c6bec8cf (patch) | |
tree | dd1e77d237db73f63f589539270a39d73525dcce /sys/fs/tmpfs/tmpfs_subr.c | |
parent | ebdd57af7d40f764ec3be46198f104c8cc8b148c (diff) | |
download | FreeBSD-src-575dc6a9d530f03d502c31513fc2e432c6bec8cf.zip FreeBSD-src-575dc6a9d530f03d502c31513fc2e432c6bec8cf.tar.gz |
MFC r284594:
Restore the td_cookie value upon detach.
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_subr.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_subr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 383b478..f06958e 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -1031,6 +1031,7 @@ tmpfs_dir_detach(struct vnode *vp, struct tmpfs_dirent *de) tmpfs_free_dirent(tmp, xde); } } + de->td_cookie = de->td_hash; } else RB_REMOVE(tmpfs_dir, head, de); |