svn commit: r324158 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Sun Oct 1 14:50:03 UTC 2017
Author: avg
Date: Sun Oct 1 14:50:01 2017
New Revision: 324158
URL: https://svnweb.freebsd.org/changeset/base/324158
Log:
MFC r323522: slightly simplify zfs_vptocnp
Modified:
stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Sun Oct 1 12:54:40 2017 (r324157)
+++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Sun Oct 1 14:50:01 2017 (r324158)
@@ -5924,7 +5924,6 @@ zfs_vptocnp(struct vop_vptocnp_args *ap)
vnode_t *vp = ap->a_vp;;
zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data;
znode_t *zp = VTOZ(vp);
- uint64_t parent;
int ltype;
int error;
@@ -5935,13 +5934,7 @@ zfs_vptocnp(struct vop_vptocnp_args *ap)
* If we are a snapshot mounted under .zfs, run the operation
* on the covered vnode.
*/
- if ((error = sa_lookup(zp->z_sa_hdl,
- SA_ZPL_PARENT(zfsvfs), &parent, sizeof (parent))) != 0) {
- ZFS_EXIT(zfsvfs);
- return (error);
- }
-
- if (zp->z_id != parent || zfsvfs->z_parent == zfsvfs) {
+ if (zp->z_id != zfsvfs->z_root || zfsvfs->z_parent == zfsvfs) {
char name[MAXNAMLEN + 1];
znode_t *dzp;
size_t len;
More information about the svn-src-stable
mailing list