Date: Mon, 14 Jul 2014 09:13:56 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268613 - head/sys/fs/tmpfs Message-ID: <201407140913.s6E9Du5s047880@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Mon Jul 14 09:13:56 2014 New Revision: 268613 URL: http://svnweb.freebsd.org/changeset/base/268613 Log: Style. Add comment about lock mode. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Modified: head/sys/fs/tmpfs/tmpfs_subr.c head/sys/fs/tmpfs/tmpfs_vnops.c Modified: head/sys/fs/tmpfs/tmpfs_subr.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_subr.c Mon Jul 14 09:10:00 2014 (r268612) +++ head/sys/fs/tmpfs/tmpfs_subr.c Mon Jul 14 09:13:56 2014 (r268613) @@ -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: head/sys/fs/tmpfs/tmpfs_vnops.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_vnops.c Mon Jul 14 09:10:00 2014 (r268612) +++ head/sys/fs/tmpfs/tmpfs_vnops.c Mon Jul 14 09:13:56 2014 (r268613) @@ -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?201407140913.s6E9Du5s047880>