PERFORCE change 169731 for review
Aditya Sarawgi
truncs at FreeBSD.org
Fri Oct 23 18:48:12 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=169731
Change 169731 by truncs at 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;
More information about the p4-projects
mailing list