Date: Mon, 28 Jul 2014 01:14:25 +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: r269172 - stable/10/sys/fs/tmpfs Message-ID: <201407280114.s6S1EPlh014971@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Mon Jul 28 01:14:25 2014 New Revision: 269172 URL: http://svnweb.freebsd.org/changeset/base/269172 Log: MFC r268613: Style. Add comment about lock mode. Modified: stable/10/sys/fs/tmpfs/tmpfs_subr.c stable/10/sys/fs/tmpfs/tmpfs_vnops.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/fs/tmpfs/tmpfs_subr.c ============================================================================== --- stable/10/sys/fs/tmpfs/tmpfs_subr.c Mon Jul 28 01:11:29 2014 (r269171) +++ stable/10/sys/fs/tmpfs/tmpfs_subr.c Mon Jul 28 01:14:25 2014 (r269172) @@ -548,6 +548,7 @@ loop1: goto unlock; MPASS(vp != NULL); + /* lkflag is ignored, the lock is exclusive */ (void) vn_lock(vp, lkflag | LK_RETRY); vp->v_data = node; Modified: stable/10/sys/fs/tmpfs/tmpfs_vnops.c ============================================================================== --- stable/10/sys/fs/tmpfs/tmpfs_vnops.c Mon Jul 28 01:11:29 2014 (r269171) +++ stable/10/sys/fs/tmpfs/tmpfs_vnops.c Mon Jul 28 01:14:25 2014 (r269172) @@ -171,7 +171,7 @@ tmpfs_lookup(struct vop_cachedlookup_arg /* Allocate a new vnode on the matching entry. */ error = tmpfs_alloc_vp(dvp->v_mount, tnode, - cnp->cn_lkflags, vpp); + cnp->cn_lkflags, vpp); if (error != 0) goto out;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407280114.s6S1EPlh014971>