Page MenuHomeFreeBSD

D23955.diff
No OneTemporary

D23955.diff

Index: head/sys/fs/nullfs/null_vfsops.c
===================================================================
--- head/sys/fs/nullfs/null_vfsops.c
+++ head/sys/fs/nullfs/null_vfsops.c
@@ -281,13 +281,10 @@
NULLFSDEBUG("nullfs_root(mp = %p, vp = %p)\n", mp,
mntdata->nullm_lowerrootvp);
- error = vget(mntdata->nullm_lowerrootvp, (flags & ~LK_TYPE_MASK) |
- LK_EXCLUSIVE, curthread);
+ error = vget(mntdata->nullm_lowerrootvp, flags, curthread);
if (error == 0) {
error = null_nodeget(mp, mntdata->nullm_lowerrootvp, &vp);
if (error == 0) {
- if ((flags & LK_TYPE_MASK) == LK_SHARED)
- vn_lock(vp, LK_DOWNGRADE | LK_RETRY);
*vpp = vp;
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 7:00 PM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14948781
Default Alt Text
D23955.diff (672 B)

Event Timeline