Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144332506
D45119.id138226.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
D45119.id138226.diff
View Options
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -1103,6 +1103,13 @@
vn_irflag_set_locked(vp, (tm->tm_pgread ? VIRF_PGREAD : 0) |
VIRF_TEXT_REF);
VI_UNLOCK(vp);
+ VNASSERT((object->flags & OBJ_TMPFS_VREF) == 0, vp,
+ ("leaked OBJ_TMPFS_VREF"));
+ if (object->un_pager.swp.writemappings > 0) {
+ vrefact(vp);
+ vlazy(vp);
+ vm_object_set_flag(object, OBJ_TMPFS_VREF);
+ }
VM_OBJECT_WUNLOCK(object);
break;
case VDIR:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 9:40 PM (13 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28501278
Default Alt Text
D45119.id138226.diff (537 B)
Attached To
Mode
D45119: tmpfs: recalculate OBJ_TMPFS_VREF on reinstantiating node' vnode
Attached
Detach File
Event Timeline
Log In to Comment