diff options
author | scottl <scottl@FreeBSD.org> | 2003-05-04 03:40:11 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-05-04 03:40:11 +0000 |
commit | 35f9e645cf6f2083217d43c1a08f2f7552e64fef (patch) | |
tree | d3dcfe9af28b03bd4bbe34d1cca136046fe1c7df /sys/fs/udf/udf.h | |
parent | c3792f8bd926539973db34033a84333af43d74b1 (diff) | |
download | FreeBSD-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.h | 7 |
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; |