summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-04 21:36:19 +0000
committerMiles Bader <miles@gnu.org>1995-10-04 21:36:19 +0000
commit777a1359eb9ba1fec24b43c0b780f261f6baefbc (patch)
tree7295a5ddcd0fc3bb5179cbd9a2bce56828f340b8 /devio
parentc7dadb3f2af131132f934a4b2f62b1a397efd39b (diff)
(trivfs_S_file_syncfs, trivfs_S_file_sync): Get rid of debugging noise.
Diffstat (limited to 'devio')
-rw-r--r--devio/io.c30
1 files changed, 5 insertions, 25 deletions
diff --git a/devio/io.c b/devio/io.c
index ace87ea5..cedb3479 100644
--- a/devio/io.c
+++ b/devio/io.c
@@ -296,39 +296,19 @@ trivfs_S_io_mod_owner (struct trivfs_protid *cred,
kern_return_t
trivfs_S_file_sync (struct trivfs_protid *cred, int wait)
{
- if (!cred)
- return EOPNOTSUPP;
+ if (cred)
+ return dev_sync (((struct open *)cred->po->hook)->dev, wait);
else
- {
-#ifdef MSG
- if (debug)
- {
- mutex_lock(&debug_lock);
- fprintf(debug, "syncing file...\n");
- mutex_unlock(&debug_lock);
- }
-#endif
- return dev_sync(((struct open *)cred->po->hook)->dev, wait);
- }
+ return EOPNOTSUPP;
}
kern_return_t
trivfs_S_file_syncfs (struct trivfs_protid *cred, int wait, int dochildren)
{
if (!cred)
- return EOPNOTSUPP;
+ return dev_sync (((struct open *)cred->po->hook)->dev, wait);
else
- {
-#ifdef MSG
- if (debug)
- {
- mutex_lock(&debug_lock);
- fprintf(debug, "syncing filesystem (through file)...\n");
- mutex_unlock(&debug_lock);
- }
-#endif
- return dev_sync(((struct open *)cred->po->hook)->dev, wait);
- }
+ return EOPNOTSUPP;
}
/* ---------------------------------------------------------------- */