Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153004430
D34906.id104979.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
849 B
Referenced Files
None
Subscribers
None
D34906.id104979.diff
View Options
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -3087,7 +3087,7 @@
error = ENOTDIR;
goto out_free;
}
- vref(vp);
+ vrefact(vp);
/*
* XXX does not check for VDIR, handled by namei_setup
*/
@@ -3537,7 +3537,7 @@
error = EINVAL;
} else {
*vpp = fp->f_vnode;
- vref(*vpp);
+ vrefact(*vpp);
}
fdrop(fp, td);
@@ -3573,7 +3573,7 @@
*havecaps = caps;
*vpp = fp->f_vnode;
- vref(*vpp);
+ vrefact(*vpp);
fdrop(fp, td);
return (0);
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -907,7 +907,7 @@
if (error != 0)
return (error);
vp = fp->f_vnode;
- vref(vp);
+ vrefact(vp);
fdrop(fp, td);
vn_lock(vp, LK_SHARED | LK_RETRY);
AUDIT_ARG_VNODE1(vp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 2:16 PM (15 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31776052
Default Alt Text
D34906.id104979.diff (849 B)
Attached To
Mode
D34906: Revert rest of a5970a529c2d95271: use vrefact() when working on fp->f_vnode
Attached
Detach File
Event Timeline
Log In to Comment