summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-22 20:59:32 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-22 20:59:32 +0000
commita861d90552c9ee28d7885420ff108d0ec59ff32a (patch)
treedec02a1c503a2f577d8810fa3e5b7223fd21adbb /libdiskfs/diskfs.h
parent193854f2ad1e553fc0ac625a3f7cb1ada6631b5b (diff)
(diskfs_enter_cache, diskfs_purge_cache, diskfs_check_cache): Add declarations.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r--libdiskfs/diskfs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index d829a7f3..fc14c790 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -950,6 +950,20 @@ void diskfs_protid_rele (void *arg);
/* Decrement the reference count on a peropen structure. */
void diskfs_release_peropen (struct peropen *po);
+/* Node NP has just been found in DIR with NAME. If NP is null, that
+ means that this name has been confirmed as absent in the directory. */
+void diskfs_enter_cache (struct node *dir, struct node *np, char *name);
+
+/* Purge all references in the cache to NP as a node inside
+ directory DP. */
+void diskfs_purge_cache (struct node *dp, struct node *np);
+
+/* Scan the cache looking for NAME inside DIR. If we don't know
+ anything entry at all, then return 0. If the entry is confirmed to
+ not exist, then return -1. Otherwise, return NP for the entry, with
+ a newly allocated reference. */
+struct node *diskfs_check_cache (struct node *dir, char *name);
+
/* Rename directory node FNP (whose parent is FDP, and which has name
FROMNAME in that directory) to have name TONAME inside directory
TDP. None of these nodes are locked, and none should be locked