summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-01-06 20:05:48 +0000
committerjhb <jhb@FreeBSD.org>2012-01-06 20:05:48 +0000
commitcdafa9e162a703f6bd82dc3309887bd15ea8def0 (patch)
treeb06b3e166baa50e51fb8159e3091106078e1cb29
parent888b946dd29027ca585859a2961df50f0259e0a0 (diff)
downloadFreeBSD-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
-rw-r--r--sys/kern/vfs_subr.c4
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);
OpenPOWER on IntegriCloud