diff options
author | jhb <jhb@FreeBSD.org> | 2012-01-06 20:05:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-01-06 20:05:48 +0000 |
commit | cdafa9e162a703f6bd82dc3309887bd15ea8def0 (patch) | |
tree | b06b3e166baa50e51fb8159e3091106078e1cb29 /sys/kern/vfs_subr.c | |
parent | 888b946dd29027ca585859a2961df50f0259e0a0 (diff) | |
download | FreeBSD-src-cdafa9e162a703f6bd82dc3309887bd15ea8def0.zip FreeBSD-src-cdafa9e162a703f6bd82dc3309887bd15ea8def0.tar.gz |
Use proper argument structure types for the extattr post-VOP hooks.
The wrong structure happened to work since the only argument used was
the vnode which is in the same place in both VOP_SETATTR() and the two
extattr VOPs.
MFC after: 3 days
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 544b1cc..307aec3 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -4035,7 +4035,7 @@ vop_create_post(void *ap, int rc) void vop_deleteextattr_post(void *ap, int rc) { - struct vop_setattr_args *a = ap; + struct vop_deleteextattr_args *a = ap; if (!rc) VFS_KNOTE_LOCKED(a->a_vp, NOTE_ATTRIB); @@ -4125,7 +4125,7 @@ vop_setattr_post(void *ap, int rc) void vop_setextattr_post(void *ap, int rc) { - struct vop_setattr_args *a = ap; + struct vop_setextattr_args *a = ap; if (!rc) VFS_KNOTE_LOCKED(a->a_vp, NOTE_ATTRIB); |