summaryrefslogtreecommitdiff
path: root/libdiskfs/io-prenotify.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 20:50:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 20:50:45 +0000
commit07a668a145036ee16be7f12f359bfb07dc8e79ed (patch)
tree49f6ca1605dfc99038cffe837431516caf929a04 /libdiskfs/io-prenotify.c
parent1900800c9ad6e3c4d9f8c3d0274cc8a27a5e2b65 (diff)
Formerly io-prenotify.c.~3~
Diffstat (limited to 'libdiskfs/io-prenotify.c')
-rw-r--r--libdiskfs/io-prenotify.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libdiskfs/io-prenotify.c b/libdiskfs/io-prenotify.c
index b3d8413a..dd9d32b2 100644
--- a/libdiskfs/io-prenotify.c
+++ b/libdiskfs/io-prenotify.c
@@ -53,17 +53,16 @@ diskfs_S_io_prenotify (struct protid *cred,
if (end < np->allocsize)
{
- /* The user is either foolin' with us, or has the wrong
- prenotify size, hence the diagnostic. */
- printf ("io_prenotify: unnecessary call\n");
+ /* The user didn't need to do this, so we'll make sure they
+ have the right shared page info. */
spin_lock (&cred->mapped->lock);
- err = ioserver_put_shared_data (cred);
+ ioserver_put_shared_data (cred);
spin_unlock (&cred->mapped->lock);
goto out;
}
err = diskfs_grow (np, end, cred);
out:
- mutex_unlock (&np->i_toplock);
+ mutex_unlock (&np->lock);
return err;
}