From a393dcc0a64b5ccf841f7694fe1b8e3f510d1f1a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 10 Feb 1994 21:02:16 +0000 Subject: Formerly priv.h.~11~ --- libdiskfs/priv.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h index e3a85849..149872b0 100644 --- a/libdiskfs/priv.h +++ b/libdiskfs/priv.h @@ -63,46 +63,6 @@ end_using_protid_port (struct protid *cred) ports_done_with_port (cred); } -/* Add a reference to a node. */ -extern inline void -diskfs_nref (struct node *np) -{ - spin_lock (&diskfs_node_refcnt_lock); - np->references++; - spin_unlock (&diskfs_node_refcnt_lock); -} - -/* Unlock node NP and release a reference */ -extern inline void -diskfs_nput (struct node *np) -{ - spin_lock (&diskfs_node_refcnt_lock); - np->references--; - if (np->references == 0) - { - diskfs_drop_node (np); - spin_unlock (&diskfs_node_refcnt_lock); - } - else - { - spin_unlock (&diskfs_node_refcnt_lock); - mutex_unlock (&np->lock); - } -} - -/* Release a reference on NP. If NP is locked by anyone, then this cannot - be the last reference (because you must hold a reference in order to - hold the lock). */ -extern inline void -diskfs_nrele (struct node *np) -{ - spin_lock (&diskfs_node_refcnt_lock); - np->references--; - if (np->references == 0) - diskfs_drop_node (np); - spin_unlock (&diskfs_node_refcnt_lock); -} - /* Actually read or write a file. The file size must already permit the requested access. NP is the file to read/write. DATA is a buffer to write from or fill on read. OFFSET is the absolute address (-1 -- cgit v1.2.3