summaryrefslogtreecommitdiff
path: root/libnetfs/io-revoke.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-02-28 20:50:09 +0000
committerRoland McGrath <roland@gnu.org>1999-02-28 20:50:09 +0000
commit52c79c2735971c6f7ebf9f06c933afbdbf4707ca (patch)
tree6269f1d5ab5b162f0cb351dc5b99dda7052faba5 /libnetfs/io-revoke.c
parent621464f62a48c46a452a7168465aec981f548cc2 (diff)
1999-02-28 Roland McGrath <roland@baalperazim.frob.com>
* io-revoke.c (netfs_S_io_revoke): Use ports_class_iterate.
Diffstat (limited to 'libnetfs/io-revoke.c')
-rw-r--r--libnetfs/io-revoke.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libnetfs/io-revoke.c b/libnetfs/io-revoke.c
index d96b4d8e..a5e27802 100644
--- a/libnetfs/io-revoke.c
+++ b/libnetfs/io-revoke.c
@@ -31,8 +31,7 @@ netfs_S_io_revoke (struct protid *cred)
{
struct protid *user = port;
- if ((user->pi.class == netfs_protid_class)
- && (user != cred)
+ if ((user != cred)
&& (user->po->np == np))
ports_destroy_right (user);
return 0;
@@ -55,7 +54,7 @@ netfs_S_io_revoke (struct protid *cred)
return err;
ports_inhibit_bucket_rpcs (netfs_port_bucket);
- ports_bucket_iterate (netfs_port_bucket, iterator_function);
+ ports_class_iterate (netfs_protid_class, iterator_function);
ports_resume_bucket_rpcs (netfs_port_bucket);
return 0;