From a890d0526034e16a425fe5b58e6ccb5e99c2b6d2 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 3 Feb 1994 20:34:14 +0000 Subject: Formerly io-stat.c.~2~ --- libdiskfs/io-stat.c | 12 +++++------- 1 file 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 . */ 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; } -- cgit v1.2.3