From 2fce33389d1ebe820a2f1b629cda576f14fd87ed Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 3 Mar 1994 22:10:59 +0000 Subject: Formerly io-map.c.~5~ --- libdiskfs/io-map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdiskfs') 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; } -- cgit v1.2.3