summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_vnops.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index cb27854..1b66620 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -490,7 +490,6 @@ tmpfs_nocacheread(vm_object_t tobj, vm_pindex_t idx,
vm_page_unlock(m);
VM_OBJECT_WUNLOCK(tobj);
error = uiomove_fromphys(&m, offset, tlen, uio);
- VM_OBJECT_WLOCK(tobj);
vm_page_lock(m);
vm_page_unhold(m);
if (m->queue == PQ_NONE) {
@@ -500,7 +499,6 @@ tmpfs_nocacheread(vm_object_t tobj, vm_pindex_t idx,
vm_page_requeue(m);
}
vm_page_unlock(m);
- VM_OBJECT_WUNLOCK(tobj);
return (error);
}
OpenPOWER on IntegriCloud