diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-20 21:17:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-20 21:17:40 +0000 |
commit | b8b062b09b687ba751b96ac20ce9fb9a79a43301 (patch) | |
tree | 608cb551a154df99f6a9548cb3d9702bd3b8428c /sys/ufs | |
parent | 15ebade0f49b1e1e6e150dec2ce588fd540bf300 (diff) | |
download | FreeBSD-src-b8b062b09b687ba751b96ac20ce9fb9a79a43301.zip FreeBSD-src-b8b062b09b687ba751b96ac20ce9fb9a79a43301.tar.gz |
Use td->td_ucred instead of td->td_proc->p_ucred.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 2 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |