diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-03 20:34:14 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-03 20:34:14 +0000 |
commit | a890d0526034e16a425fe5b58e6ccb5e99c2b6d2 (patch) | |
tree | 5c05832d288ae1cdeddb75214fe4148d15d0e5e5 /libdiskfs | |
parent | 5c27cc87e8cdc7b5e961a1db535d2db0488d6138 (diff) |
Formerly io-stat.c.~2~
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-stat.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index 4e504b3a..757e84e4 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -16,6 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" +#include "io_S.h" /* Implement io_stat as described in <hurd/io.defs>. */ error_t @@ -29,12 +30,9 @@ diskfs_S_io_stat (struct protid *cred, return EOPNOTSUPP; np = cred->po->np; - mutex_lock (&ip->lock); - error = ioserver_get_conch (&ip->i_conch); - if (!error) - bcopy (np->dn_stat, statbuf, sizeof (struct stat)); - - out: - mutex_unlock (&ip->i_toplock); + mutex_lock (&np->lock); + ioserver_get_conch (&ip->conch); + bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); + mutex_unlock (&np->lock); return error; } |