Author: avg
Date: Wed May 18 08:19:41 2016
New Revision: 300131
URL: https://svnweb.freebsd.org/changeset/base/300131

Log:
  zfs_root: no need to set the root flag here
  
  That was both redundant as zfs_znode_sa_init() already does the job and
  insufficient as the root vnode can be reached via other means.
  
  MFC after:    1 weeks

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c    Wed May 
18 08:02:49 2016        (r300130)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c    Wed May 
18 08:19:41 2016        (r300131)
@@ -1780,11 +1780,8 @@ zfs_root(vfs_t *vfsp, int flags, vnode_t
 
        ZFS_EXIT(zfsvfs);
 
-       if (error == 0) {
+       if (error == 0)
                error = vn_lock(*vpp, flags);
-               if (error == 0)
-                       (*vpp)->v_vflag |= VV_ROOT;
-       }
        if (error != 0)
                *vpp = NULL;
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to