summaryrefslogtreecommitdiffstats
path: root/sys/fs/udf/udf.h
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-05-04 03:40:11 +0000
committerscottl <scottl@FreeBSD.org>2003-05-04 03:40:11 +0000
commit35f9e645cf6f2083217d43c1a08f2f7552e64fef (patch)
treed3dcfe9af28b03bd4bbe34d1cca136046fe1c7df /sys/fs/udf/udf.h
parentc3792f8bd926539973db34033a84333af43d74b1 (diff)
downloadFreeBSD-src-35f9e645cf6f2083217d43c1a08f2f7552e64fef.zip
FreeBSD-src-35f9e645cf6f2083217d43c1a08f2f7552e64fef.tar.gz
Implement the node cache as a hash table.
Diffstat (limited to 'sys/fs/udf/udf.h')
-rw-r--r--sys/fs/udf/udf.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/fs/udf/udf.h b/sys/fs/udf/udf.h
index 654c8fd..3fde1a3 100644
--- a/sys/fs/udf/udf.h
+++ b/sys/fs/udf/udf.h
@@ -26,8 +26,10 @@
* $FreeBSD$
*/
+#define UDF_HASHTBLSIZE 100
+
struct udf_node {
- TAILQ_ENTRY(udf_node) tq;
+ LIST_ENTRY(udf_node) le;
struct vnode *i_vnode;
struct vnode *i_devvp;
struct udf_mnt *udfmp;
@@ -50,7 +52,8 @@ struct udf_mnt {
uint64_t root_id;
struct vnode *root_vp;
struct long_ad root_icb;
- TAILQ_HEAD(, udf_node) udf_tqh;
+ LIST_HEAD(udf_hash_lh, udf_node) *hashtbl;
+ u_long hashsz;
struct mtx hash_mtx;
int p_sectors;
int s_table_entries;
OpenPOWER on IntegriCloud