Author: jhb
Date: Fri Jan 6 20:05:48 2012
New Revision: 229727
URL: http://svn.freebsd.org/changeset/base/229727
Log:
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
Modified:
head/sys/kern/vfs_subr.c
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Fri Jan 6 19:33:27 2012 (r229726)
+++ head/sys/kern/vfs_subr.c Fri Jan 6 20:05:48 2012 (r229727)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"