diff options
author | delphij <delphij@FreeBSD.org> | 2006-04-18 08:05:08 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-04-18 08:05:08 +0000 |
commit | 0c90800cc68dbc996e5e2c5ff15d88797a7b4724 (patch) | |
tree | ab04114269242e3560b181769bb1eccd44671909 /sys/sys/vnode.h | |
parent | b591c1981835cde1d8ba2d9f053ec25c8c7656d6 (diff) | |
download | FreeBSD-src-0c90800cc68dbc996e5e2c5ff15d88797a7b4724.zip FreeBSD-src-0c90800cc68dbc996e5e2c5ff15d88797a7b4724.tar.gz |
In vfs_hash_get(): mount point should never be changed
so explicitly constify the mp parameter.
Reviewed by: phk
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index dd51d92..ed027a7 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -719,7 +719,7 @@ extern struct vop_vector default_vnodeops; /* vfs_hash.c */ 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_get(const 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); |