aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_object.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index e7b297b5830cc..37017377ca1e8 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -1216,6 +1216,11 @@ vm_object_shadow(
* shadowed object.
*/
result->backing_object = source;
+ /*
+ * Store the offset into the source object, and fix up the offset into
+ * the new object.
+ */
+ result->backing_object_offset = *offset;
if (source != NULL) {
VM_OBJECT_LOCK(source);
LIST_INSERT_HEAD(&source->shadow_head, result, shadow_list);
@@ -1233,11 +1238,6 @@ vm_object_shadow(
PQ_L2_MASK;
}
- /*
- * Store the offset into the source object, and fix up the offset into
- * the new object.
- */
- result->backing_object_offset = *offset;
/*
* Return the new things