diff options
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_vnops.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 719a5de..066f9c9 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -390,7 +390,7 @@ tmpfs_setattr(struct vop_setattr_args *v) struct vnode *vp = v->a_vp; struct vattr *vap = v->a_vap; struct ucred *cred = v->a_cred; - struct thread *l = v->a_td; + struct thread *td = curthread; int error; @@ -410,17 +410,16 @@ tmpfs_setattr(struct vop_setattr_args *v) error = EINVAL; if (error == 0 && (vap->va_flags != VNOVAL)) - error = tmpfs_chflags(vp, vap->va_flags, cred, l); + error = tmpfs_chflags(vp, vap->va_flags, cred, td); if (error == 0 && (vap->va_size != VNOVAL)) - error = tmpfs_chsize(vp, vap->va_size, cred, l); + error = tmpfs_chsize(vp, vap->va_size, cred, td); if (error == 0 && (vap->va_uid != VNOVAL || vap->va_gid != VNOVAL)) - error = tmpfs_chown(vp, vap->va_uid, vap->va_gid, cred, - l); + error = tmpfs_chown(vp, vap->va_uid, vap->va_gid, cred, td); if (error == 0 && (vap->va_mode != (mode_t)VNOVAL)) - error = tmpfs_chmod(vp, vap->va_mode, cred, l); + error = tmpfs_chmod(vp, vap->va_mode, cred, td); if (error == 0 && ((vap->va_atime.tv_sec != VNOVAL && vap->va_atime.tv_nsec != VNOVAL) || @@ -429,7 +428,7 @@ tmpfs_setattr(struct vop_setattr_args *v) (vap->va_birthtime.tv_sec != VNOVAL && vap->va_birthtime.tv_nsec != VNOVAL))) error = tmpfs_chtimes(vp, &vap->va_atime, &vap->va_mtime, - &vap->va_birthtime, vap->va_vaflags, cred, l); + &vap->va_birthtime, vap->va_vaflags, cred, td); /* Update the node times. We give preference to the error codes * generated by this function rather than the ones that may arise |