Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2015 06:25:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r284868 - stable/10/sys/fs/tmpfs
Message-ID:  <201506260625.t5Q6PFju011580@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jun 26 06:25:14 2015
New Revision: 284868
URL: https://svnweb.freebsd.org/changeset/base/284868

Log:
  MFC r284594:
  Restore the td_cookie value upon detach.

Modified:
  stable/10/sys/fs/tmpfs/tmpfs_subr.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- stable/10/sys/fs/tmpfs/tmpfs_subr.c	Fri Jun 26 06:08:52 2015	(r284867)
+++ stable/10/sys/fs/tmpfs/tmpfs_subr.c	Fri Jun 26 06:25:14 2015	(r284868)
@@ -1031,6 +1031,7 @@ tmpfs_dir_detach(struct vnode *vp, struc
 				tmpfs_free_dirent(tmp, xde);
 			}
 		}
+		de->td_cookie = de->td_hash;
 	} else
 		RB_REMOVE(tmpfs_dir, head, de);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506260625.t5Q6PFju011580>