Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102608317
D37725.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
718 B
Referenced Files
None
Subscribers
None
D37725.id.diff
View Options
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -491,7 +491,6 @@
{
struct vnode *vp = v->a_vp;
struct vattr *vap = v->a_vap;
- vm_object_t obj;
struct tmpfs_node *node;
node = VP_TO_TMPFS_NODE(vp);
@@ -516,10 +515,15 @@
vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ?
node->tn_rdev : NODEV;
if (vp->v_type == VREG) {
- obj = node->tn_reg.tn_aobj;
+#ifdef __ILP32__
+ vm_object_t obj = node->tn_reg.tn_aobj;
+
VM_OBJECT_RLOCK(obj);
+#endif
vap->va_bytes = ptoa(node->tn_reg.tn_pages);
+#ifdef __ILP32__
VM_OBJECT_RUNLOCK(obj);
+#endif
} else {
vap->va_bytes = node->tn_size;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 5:52 PM (1 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14646190
Default Alt Text
D37725.id.diff (718 B)
Attached To
Mode
D37725: tmpfs_getattr(): Only take vm_object lock on 32bit
Attached
Detach File
Event Timeline
Log In to Comment