diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-01 21:30:38 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-01 21:30:38 +0000 |
commit | b99a3ad650fec94f5f476dd739972b8cb6c8daca (patch) | |
tree | c445bdf36b64039d1130df1f6716a9e95cfd0bd6 /libnetfs/netfs.h | |
parent | 1f6601e1a657d7008f6c15fca71d2dc092f7cb78 (diff) | |
download | hurd-b99a3ad650fec94f5f476dd739972b8cb6c8daca.tar.gz hurd-b99a3ad650fec94f5f476dd739972b8cb6c8daca.tar.bz2 hurd-b99a3ad650fec94f5f476dd739972b8cb6c8daca.zip |
1999-07-01 Thomas Bushnell, BSG <tb@mit.edu>
* nref.c: New file; guts from netfs.h.
* nrele.c: Likewise.
* nput.c: Likewise.
* netfs.h (netfs_nref, netfs_nrele, netfs_nput): Replace inline
definitions with normal declarations.
(NETFS_EI): Remove macro.
* netfs.c: Deleted file.
* Makefile (OTHERSRCS): Add nref.c, nrele.c, nput.c. Remove
netfs.c.
Diffstat (limited to 'libnetfs/netfs.h')
-rw-r--r-- | libnetfs/netfs.h | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h index b2253dff..d75dfe39 100644 --- a/libnetfs/netfs.h +++ b/libnetfs/netfs.h @@ -24,10 +24,6 @@ #include <hurd/iohelp.h> #include <assert.h> -#ifndef NETFS_EI -#define NETFS_EI extern inline -#endif - /* This library supports client-side network file system implementations. It is analogous to the diskfs library provided for disk-based filesystems. */ @@ -337,44 +333,9 @@ extern struct node *netfs_root_node; extern mach_port_t netfs_fsys_identity; extern auth_t netfs_auth_server_port; -NETFS_EI void -netfs_nref (struct node *np) -{ - spin_lock (&netfs_node_refcnt_lock); - np->references++; - spin_unlock (&netfs_node_refcnt_lock); -} - -NETFS_EI void -netfs_nrele (struct node *np) -{ - spin_lock (&netfs_node_refcnt_lock); - assert (np->references); - np->references--; - if (np->references == 0) - { - mutex_lock (&np->lock); - netfs_drop_node (np); - } - else - spin_unlock (&netfs_node_refcnt_lock); -} - -NETFS_EI void -netfs_nput (struct node *np) -{ - spin_lock (&netfs_node_refcnt_lock); - assert (np->references); - np->references--; - if (np->references == 0) - netfs_drop_node (np); - else - { - spin_unlock (&netfs_node_refcnt_lock); - mutex_unlock (&np->lock); - } -} - +void netfs_nref (struct node *np); +void netfs_nrele (struct node *np); +void netfs_nput (struct node *np); /* Mig gook. */ |