From b8b062b09b687ba751b96ac20ce9fb9a79a43301 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 20 Mar 2003 21:17:40 +0000 Subject: Use td->td_ucred instead of td->td_proc->p_ucred. --- sys/ufs/ffs/ffs_snapshot.c | 2 +- sys/ufs/ffs/ffs_vfsops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index 58ddfd2..442d99a 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -412,7 +412,7 @@ loop: mp_fixme("Unlocked GETATTR."); if (vrefcnt(xvp) == 0 || xvp->v_type == VNON || (VTOI(xvp)->i_flags & SF_SNAPSHOT) || - (VOP_GETATTR(xvp, &vat, td->td_proc->p_ucred, td) == 0 && + (VOP_GETATTR(xvp, &vat, td->td_ucred, td) == 0 && vat.va_nlink > 0)) { mtx_lock(&mntvnode_mtx); continue; diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index fe22521..b77b88d 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -199,7 +199,7 @@ ffs_mount(mp, path, data, ndp, td) * Flush any dirty data. */ if ((error = VFS_SYNC(mp, MNT_WAIT, - td->td_proc->p_ucred, td)) != 0) { + td->td_ucred, td)) != 0) { vn_finished_write(mp); return (error); } -- cgit v1.1