vnode: Make the vop_vector reference a pointer to const

No functional change intended.

MFC after:	1 week

(cherry picked from commit cd048d5d8be736419df878c26e6e170b8569dd12)
This commit is contained in:
Mark Johnston 2024-11-25 22:38:22 +00:00
parent a5c39c4448
commit d841b67b47
2 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ struct vnode {
seqc_t v_seqc; /* i modification count */
uint32_t v_nchash; /* u namecache hash */
u_int v_hash;
struct vop_vector *v_op; /* u vnode operations vector */
const struct vop_vector *v_op; /* u vnode operations vector */
void *v_data; /* u private data for fs */
/*

View file

@ -328,7 +328,7 @@ while ((getline < srcfile) > 0) {
# Print out function prototypes.
printh("int " uname "_AP(struct " name "_args *);");
printh("int " uname "_APV(struct vop_vector *vop, struct " name "_args *);");
printh("int " uname "_APV(const struct vop_vector *vop, struct " name "_args *);");
printh("");
printh("static __inline int " uname "(");
for (i = 0; i < numargs; ++i) {
@ -392,7 +392,7 @@ while ((getline < srcfile) > 0) {
printc("");
printc("\treturn(" uname "_APV(a->a_" args[0] "->v_op, a));");
printc("}");
printc("\nint\n" uname "_APV(struct vop_vector *vop, struct " name "_args *a)");
printc("\nint\n" uname "_APV(const struct vop_vector *vop, struct " name "_args *a)");
printc("{");
printc("\tint rc;");
printc("");