From 43c165f7ff4d63d0506ef926bb5a9c1ecec32478 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 20 Jun 1997 05:40:54 +0000 Subject: (diskfs_S_io_stat): Use fshelp_translated rather than fshelp_fetch_control. --- libdiskfs/io-stat.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index fb84fa68..e51f6d93 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -25,7 +25,6 @@ diskfs_S_io_stat (struct protid *cred, io_statbuf_t *statbuf) { struct node *np; - mach_port_t atrans; if (!cred) return EOPNOTSUPP; @@ -41,12 +40,8 @@ diskfs_S_io_stat (struct protid *cred, bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); statbuf->st_mode &= ~(S_IATRANS | S_IROOT); - if (fshelp_fetch_control (&np->transbox, &atrans) == 0 - && atrans != MACH_PORT_NULL) - { - statbuf->st_mode |= S_IATRANS; - mach_port_deallocate (mach_task_self (), atrans); - } + if (fshelp_translated (&np->transbox)) + statbuf->st_mode |= S_IATRANS; if (cred->po->shadow_root == np || np == diskfs_root_node) statbuf->st_mode |= S_IROOT; -- cgit v1.2.3