diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-03-03 22:10:59 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-03-03 22:10:59 +0000 |
commit | 2fce33389d1ebe820a2f1b629cda576f14fd87ed (patch) | |
tree | d3cee4516f7abb988d4b3c1cbcb56b3f6a8ddbf3 /libdiskfs/io-map.c | |
parent | d0d38cbb9961cc908ae1a074062e5df296c65a10 (diff) | |
download | hurd-2fce33389d1ebe820a2f1b629cda576f14fd87ed.tar.gz hurd-2fce33389d1ebe820a2f1b629cda576f14fd87ed.tar.bz2 hurd-2fce33389d1ebe820a2f1b629cda576f14fd87ed.zip |
Formerly io-map.c.~5~
Diffstat (limited to 'libdiskfs/io-map.c')
-rw-r--r-- | libdiskfs/io-map.c | 4 |
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; } |