From dbf35e279f37ad4a573bf93923d141cb4a454c7d Mon Sep 17 00:00:00 2001 From: attilio Date: Thu, 28 Aug 2008 15:23:18 +0000 Subject: Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread was always curthread and totally unuseful. Tested by: Giovanni Trematerra --- sys/gnu/fs/ext2fs/ext2_vnops.c | 4 +--- sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/gnu/fs') diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index 76d2cc1..c02bf96 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -335,7 +335,6 @@ ext2_getattr(ap) struct vnode *a_vp; struct vattr *a_vap; struct ucred *a_cred; - struct thread *a_td; } */ *ap; { struct vnode *vp = ap->a_vp; @@ -378,14 +377,13 @@ ext2_setattr(ap) struct vnode *a_vp; struct vattr *a_vap; struct ucred *a_cred; - struct thread *a_td; } */ *ap; { struct vattr *vap = ap->a_vap; struct vnode *vp = ap->a_vp; struct inode *ip = VTOI(vp); struct ucred *cred = ap->a_cred; - struct thread *td = ap->a_td; + struct thread *td = curthread; int error; /* diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c index 1027416..f09e9ce 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c @@ -230,7 +230,6 @@ _xfs_getattr( struct vnode *a_vp; struct vattr *a_vap; struct ucred *a_cred; - struct thread *a_td; } */ *ap) { struct vnode *vp = ap->a_vp; @@ -293,7 +292,6 @@ _xfs_setattr( struct vnode *a_vp; struct vattr *a_vap; struct ucred *a_cred; - struct thread *a_td; } */ *ap) { struct vnode *vp = ap->a_vp; -- cgit v1.1