diff options
author | Miles Bader <miles@gnu.org> | 1995-10-04 21:36:19 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-04 21:36:19 +0000 |
commit | c1d033c58229ba3f1dbbbeae3ea783f132838bc6 (patch) | |
tree | a639a308dbd0c3f2d7ce3c5d54119dfdb9678459 /devio/io.c | |
parent | 7cf2b89b8518c511a2ada31beb5a925a54fdee7c (diff) |
(trivfs_S_file_syncfs, trivfs_S_file_sync): Get rid of debugging noise.
Diffstat (limited to 'devio/io.c')
-rw-r--r-- | devio/io.c | 30 |
1 files changed, 5 insertions, 25 deletions
@@ -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; } /* ---------------------------------------------------------------- */ |