summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcasper <none@none>2007-05-30 08:11:45 -0700
committercasper <none@none>2007-05-30 08:11:45 -0700
commita43c4dd18111cef5d2fa84635cd3350196bb487d (patch)
treea7f382df758c23be3f79c4cfb000ea40158809c6
parent6232fd77f97f23a84bc904bf23377a74a0d7ce40 (diff)
downloadillumos-gate-a43c4dd18111cef5d2fa84635cd3350196bb487d.tar.gz
6563353 Some fs'es call vnode ops with NULL cred_t *
-rw-r--r--usr/src/uts/common/fs/cachefs/cachefs_filegrp.c11
-rw-r--r--usr/src/uts/common/fs/pcfs/pc_node.c5
2 files changed, 7 insertions, 9 deletions
diff --git a/usr/src/uts/common/fs/cachefs/cachefs_filegrp.c b/usr/src/uts/common/fs/cachefs/cachefs_filegrp.c
index 6e1ea6e164..2da9b2bfda 100644
--- a/usr/src/uts/common/fs/cachefs/cachefs_filegrp.c
+++ b/usr/src/uts/common/fs/cachefs/cachefs_filegrp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -758,7 +757,7 @@ filegrp_read_metadata(filegrp_t *fgp, cfs_cid_t *cidp,
error = vn_rdwr(UIO_READ, fgp->fg_attrvp,
(caddr_t)tmpmdp, sizeof (struct cfs_cachefs_metadata),
(offset_t)slot,
- UIO_SYSSPACE, 0, (long long)0, (cred_t *)NULL, NULL);
+ UIO_SYSSPACE, 0, (long long)0, kcred, NULL);
if (error) {
cmn_err(CE_WARN,
"cachefs_read_metadata:"
@@ -1431,7 +1430,7 @@ filegrpattr_find(struct filegrp *fgp)
error = vn_rdwr(UIO_READ, attrvp, (caddr_t)ahp,
fgp->fg_headersize, 0LL, UIO_SYSSPACE,
- 0, (rlim64_t)RLIM_INFINITY, (cred_t *)NULL, NULL);
+ 0, (rlim64_t)RLIM_INFINITY, kcred, NULL);
if (error) {
cmn_err(CE_WARN, "cachefs: Read attrcache error %d, run fsck",
error);
diff --git a/usr/src/uts/common/fs/pcfs/pc_node.c b/usr/src/uts/common/fs/pcfs/pc_node.c
index b222cf71d4..c31cfc5d49 100644
--- a/usr/src/uts/common/fs/pcfs/pc_node.c
+++ b/usr/src/uts/common/fs/pcfs/pc_node.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -207,8 +207,7 @@ syncpcp(struct pcnode *pcp, int flags)
if (!vn_has_cached_data(PCTOV(pcp)))
err = 0;
else
- err = VOP_PUTPAGE(PCTOV(pcp), (offset_t)0, (uint_t)0,
- flags, (struct cred *)0);
+ err = VOP_PUTPAGE(PCTOV(pcp), 0, 0, flags, kcred);
return (err);
}