Date: Fri, 23 Oct 2009 18:48:11 GMT From: Aditya Sarawgi <truncs@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 169731 for review Message-ID: <200910231848.n9NImBk2049149@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=169731 Change 169731 by truncs@aditya on 2009/10/23 18:47:36 Honor the cn_lkflags passed from namei() when locking the leaf. Affected files ... .. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_lookup.c#10 edit Differences ... ==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_lookup.c#10 (text+ko) ==== @@ -657,7 +657,7 @@ if (flags & ISDOTDOT) { ltype = VOP_ISLOCKED(pdp); VOP_UNLOCK(pdp, 0); /* race to get the inode */ - error = VFS_VGET(vdp->v_mount, ino, LK_EXCLUSIVE, &tdp); + error = VFS_VGET(vdp->v_mount, ino, cnp->cn_lkflags, &tdp); vn_lock(pdp, ltype | LK_RETRY); if (error != 0) return (error); @@ -677,7 +677,7 @@ } *vpp = vdp; } else { - if ((error = VFS_VGET(vdp->v_mount, ino, LK_EXCLUSIVE, + if ((error = VFS_VGET(vdp->v_mount, ino, cnp->cn_lkflags, &tdp)) != 0) return (error); *vpp = tdp;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910231848.n9NImBk2049149>