diff options
author | phk <phk@FreeBSD.org> | 2005-03-16 11:20:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-03-16 11:20:51 +0000 |
commit | 98f1c9b062647e119053ac555f7eb5e353d0c465 (patch) | |
tree | 4ec08b592ae3dc7f2da72161be0120f5fe447736 /sys/sys/vnode.h | |
parent | 6552218237e46878fe727ca080ccc8a0f753e6df (diff) | |
download | FreeBSD-src-98f1c9b062647e119053ac555f7eb5e353d0c465.zip FreeBSD-src-98f1c9b062647e119053ac555f7eb5e353d0c465.tar.gz |
Add two arguments to the vfs_hash() KPI so that filesystems which do
not have unique hashes (NFS) can also use it.
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 920df12..45e1880 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -693,8 +693,10 @@ extern struct vop_vector default_vnodeops; #define VOP_EOPNOTSUPP ((void*)(uintptr_t)vop_eopnotsupp) /* vfs_hash.c */ -int vfs_hash_get(struct mount *mp, u_int hash, int flags, struct thread *td, struct vnode **vpp); -int vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, struct vnode **vpp); +typedef int vfs_hash_cmp_t(struct vnode *vp, void *arg); + +int vfs_hash_get(struct mount *mp, u_int hash, int flags, struct thread *td, struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg); +int vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg); void vfs_hash_rehash(struct vnode *vp, u_int hash); void vfs_hash_remove(struct vnode *vp); |