Page MenuHomeFreeBSD

D37725.id.diff
No OneTemporary

D37725.id.diff

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

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)

Event Timeline