summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-03-03 22:10:59 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-03-03 22:10:59 +0000
commit2fce33389d1ebe820a2f1b629cda576f14fd87ed (patch)
treed3cee4516f7abb988d4b3c1cbcb56b3f6a8ddbf3
parentd0d38cbb9961cc908ae1a074062e5df296c65a10 (diff)
Formerly io-map.c.~5~
-rw-r--r--libdiskfs/io-map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/io-map.c b/libdiskfs/io-map.c
index 82e6e233..00d6bdcd 100644
--- a/libdiskfs/io-map.c
+++ b/libdiskfs/io-map.c
@@ -29,8 +29,10 @@ diskfs_S_io_map (struct protid *cred,
if (!cred)
return EOPNOTSUPP;
+ mutex_lock (&cred->po->np->lock);
*rdobj = diskfs_get_filemap (cred->po->np);
- *rdtype = *wrtype = MACH_MSG_TYPE_COPY_SEND;
+ mutex_unlock (&cred->po->np->lock);
+ *rdtype = *wrtype = MACH_MSG_TYPE_MOVE_SEND;
*wrobj = *rdobj;
return 0;
}