Page MenuHomeFreeBSD

D25263.id.diff
No OneTemporary

D25263.id.diff

Index: head/sys/fs/nfs/nfs_commonsubs.c
===================================================================
--- head/sys/fs/nfs/nfs_commonsubs.c
+++ head/sys/fs/nfs/nfs_commonsubs.c
@@ -1402,9 +1402,9 @@
if (compare) {
if (*retcmpp == 0) {
if (thyp != (u_int64_t)
- vfs_statfs(vnode_mount(vp))->f_fsid.val[0] ||
+ vp->v_mount->mnt_stat.f_fsid.val[0] ||
thyp2 != (u_int64_t)
- vfs_statfs(vnode_mount(vp))->f_fsid.val[1])
+ vp->v_mount->mnt_stat.f_fsid.val[1])
*retcmpp = NFSERR_NOTSAME;
}
} else if (nap != NULL) {
@@ -1876,7 +1876,7 @@
*/
savuid = p->p_cred->p_ruid;
p->p_cred->p_ruid = cred->cr_uid;
- if (!VFS_QUOTACTL(vnode_mount(vp),QCMD(Q_GETQUOTA,
+ if (!VFS_QUOTACTL(vp->v_mount,QCMD(Q_GETQUOTA,
USRQUOTA), cred->cr_uid, (caddr_t)&dqb))
freenum = min(dqb.dqb_bhardlimit, freenum);
p->p_cred->p_ruid = savuid;
@@ -1905,7 +1905,7 @@
*/
savuid = p->p_cred->p_ruid;
p->p_cred->p_ruid = cred->cr_uid;
- if (!VFS_QUOTACTL(vnode_mount(vp),QCMD(Q_GETQUOTA,
+ if (!VFS_QUOTACTL(vp->v_mount,QCMD(Q_GETQUOTA,
USRQUOTA), cred->cr_uid, (caddr_t)&dqb))
freenum = min(dqb.dqb_bsoftlimit, freenum);
p->p_cred->p_ruid = savuid;
@@ -1931,7 +1931,7 @@
*/
savuid = p->p_cred->p_ruid;
p->p_cred->p_ruid = cred->cr_uid;
- if (!VFS_QUOTACTL(vnode_mount(vp),QCMD(Q_GETQUOTA,
+ if (!VFS_QUOTACTL(vp->v_mount,QCMD(Q_GETQUOTA,
USRQUOTA), cred->cr_uid, (caddr_t)&dqb))
freenum = dqb.dqb_curblocks;
p->p_cred->p_ruid = savuid;
Index: head/sys/fs/nfs/nfsdport.h
===================================================================
--- head/sys/fs/nfs/nfsdport.h
+++ head/sys/fs/nfs/nfsdport.h
@@ -101,12 +101,6 @@
(n)->cn_flags = (f); \
} while (0)
-/*
- * A little bit of Darwin vfs kpi.
- */
-#define vnode_mount(v) ((v)->v_mount)
-#define vfs_statfs(m) (&((m)->mnt_stat))
-
#define NFSPATHLEN_T size_t
/*
Index: head/sys/fs/nfs/nfskpiport.h
===================================================================
--- head/sys/fs/nfs/nfskpiport.h
+++ head/sys/fs/nfs/nfskpiport.h
@@ -36,11 +36,9 @@
* Darwin8 and hopefully subsequent releases from Apple.)
*/
typedef struct mount * mount_t;
-#define vfs_statfs(m) (&((m)->mnt_stat))
#define vfs_flags(m) ((m)->mnt_flag)
typedef struct vnode * vnode_t;
-#define vnode_mount(v) ((v)->v_mount)
#define vnode_vtype(v) ((v)->v_type)
#endif /* _NFS_NFSKPIPORT_H */
Index: head/sys/fs/nfs/nfsport.h
===================================================================
--- head/sys/fs/nfs/nfsport.h
+++ head/sys/fs/nfs/nfsport.h
@@ -1052,11 +1052,6 @@
(n)->nm_minorvers > 0)
/*
- * Gets the stats field out of the mount structure.
- */
-#define vfs_statfs(m) (&((m)->mnt_stat))
-
-/*
* Set boottime.
*/
#define NFSSETBOOTTIME(b) (getboottime(&b))
Index: head/sys/fs/nfsclient/nfs_clbio.c
===================================================================
--- head/sys/fs/nfsclient/nfs_clbio.c
+++ head/sys/fs/nfsclient/nfs_clbio.c
@@ -1572,7 +1572,7 @@
if ((bp->b_flags & B_DIRECT) && bp->b_iocmd == BIO_WRITE) {
struct nfsnode *np = VTONFS(bp->b_vp);
NFSLOCKNODE(np);
- if (NFSHASPNFS(VFSTONFS(vnode_mount(bp->b_vp)))) {
+ if (NFSHASPNFS(VFSTONFS(bp->b_vp->v_mount))) {
/*
* Invalidate the attribute cache, since writes to a DS
* won't update the size attribute.
Index: head/sys/fs/nfsclient/nfs_clrpcops.c
===================================================================
--- head/sys/fs/nfsclient/nfs_clrpcops.c
+++ head/sys/fs/nfsclient/nfs_clrpcops.c
@@ -356,7 +356,7 @@
struct nfscldeleg *dp;
struct nfsfh *nfhp;
struct nfsnode *np = VTONFS(vp);
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
u_int32_t mode, clidrev;
int ret, newone, error, expireret = 0, retrycnt;
@@ -694,7 +694,7 @@
NFSCL_REQSTART(nd, NFSPROC_OPENDOWNGRADE, vp);
NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID + 3 * NFSX_UNSIGNED);
- if (NFSHASNFSV4N(VFSTONFS(vnode_mount(vp))))
+ if (NFSHASNFSV4N(VFSTONFS(vp->v_mount)))
*tl++ = 0;
else
*tl++ = op->nfso_stateid.seqid;
@@ -894,7 +894,7 @@
struct nfsmount *nmp;
int error;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (NFSHASNFSV4N(nmp))
return (0); /* No confirmation for NFSv4.1. */
nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL,
@@ -1258,7 +1258,7 @@
{
int error, expireret = 0, openerr, retrycnt;
u_int32_t clidrev = 0, mode;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsfh *nfhp;
nfsv4stateid_t stateid;
void *lckp;
@@ -1395,7 +1395,7 @@
*dattrflagp = 0;
if (vnode_vtype(dvp) != VDIR)
return (ENOTDIR);
- nmp = VFSTONFS(vnode_mount(dvp));
+ nmp = VFSTONFS(dvp->v_mount);
if (len > NFS_MAXNAMLEN)
return (ENAMETOOLONG);
if (NFSHASNFSV4(nmp) && len == 1 &&
@@ -1543,7 +1543,7 @@
{
int error, expireret = 0, retrycnt;
u_int32_t clidrev = 0;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsnode *np = VTONFS(vp);
struct ucred *newcred;
struct nfsfh *nfhp = NULL;
@@ -1609,7 +1609,7 @@
u_int32_t *tl;
int error = 0, len, retlen, tsiz, eof = 0;
struct nfsrv_descript nfsd;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsrv_descript *nd = &nfsd;
int rsize;
off_t tmp_off;
@@ -1702,7 +1702,7 @@
{
int error, expireret = 0, retrycnt, nostateid;
u_int32_t clidrev = 0;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsnode *np = VTONFS(vp);
struct ucred *newcred;
struct nfsfh *nfhp = NULL;
@@ -1779,7 +1779,7 @@
NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp, void *stuff)
{
u_int32_t *tl;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsnode *np = VTONFS(vp);
int error = 0, len, tsiz, rlen, commit, committed = NFSWRITE_FILESYNC;
int wccflag = 0, wsize;
@@ -2049,7 +2049,7 @@
int error = 0, newone, expireret = 0, retrycnt, unlocked;
struct nfsclowner *owp;
struct nfscldeleg *dp;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(dvp));
+ struct nfsmount *nmp = VFSTONFS(dvp->v_mount);
u_int32_t clidrev;
if (NFSHASNFSV4(nmp)) {
@@ -2369,7 +2369,7 @@
(owp->nfsow_clp->nfsc_flags & NFSCLFLAGS_GOTDELEG) &&
!error && dp == NULL) {
do {
- ret = nfsrpc_openrpc(VFSTONFS(vnode_mount(dvp)), dvp,
+ ret = nfsrpc_openrpc(VFSTONFS(dvp->v_mount), dvp,
np->n_fhp->nfh_fh, np->n_fhp->nfh_len,
nfhp->nfh_fh, nfhp->nfh_len,
(NFSV4OPEN_ACCESSWRITE | NFSV4OPEN_ACCESSREAD), op,
@@ -2422,7 +2422,7 @@
*dattrflagp = 0;
if (namelen > NFS_MAXNAMLEN)
return (ENAMETOOLONG);
- nmp = VFSTONFS(vnode_mount(dvp));
+ nmp = VFSTONFS(dvp->v_mount);
tryagain:
if (NFSHASNFSV4(nmp) && ret == 0) {
ret = nfscl_removedeleg(vp, p, &dstateid);
@@ -2500,7 +2500,7 @@
*fattrflagp = 0;
*tattrflagp = 0;
- nmp = VFSTONFS(vnode_mount(fdvp));
+ nmp = VFSTONFS(fdvp->v_mount);
if (fnamelen > NFS_MAXNAMLEN || tnamelen > NFS_MAXNAMLEN)
return (ENAMETOOLONG);
tryagain:
@@ -2719,7 +2719,7 @@
*nfhpp = NULL;
*attrflagp = 0;
*dattrflagp = 0;
- nmp = VFSTONFS(vnode_mount(dvp));
+ nmp = VFSTONFS(dvp->v_mount);
slen = strlen(target);
if (slen > NFS_MAXPATHLEN || namelen > NFS_MAXNAMLEN)
return (ENAMETOOLONG);
@@ -2782,7 +2782,7 @@
*nfhpp = NULL;
*attrflagp = 0;
*dattrflagp = 0;
- nmp = VFSTONFS(vnode_mount(dvp));
+ nmp = VFSTONFS(dvp->v_mount);
fhp = VTONFS(dvp)->n_fhp;
if (namelen > NFS_MAXNAMLEN)
return (ENAMETOOLONG);
@@ -2913,7 +2913,7 @@
struct dirent *dp = NULL;
u_int32_t *tl;
nfsquad_t cookie, ncookie;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsnode *dnp = VTONFS(vp);
struct nfsvattr nfsva;
struct nfsrv_descript nfsd, *nd = &nfsd;
@@ -3363,7 +3363,7 @@
struct nfsrv_descript nfsd, *nd = &nfsd;
struct nameidata nami, *ndp = &nami;
struct componentname *cnp = &ndp->ni_cnd;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsnode *dnp = VTONFS(vp), *np;
struct nfsvattr nfsva;
struct nfsfh *nfhp;
@@ -3740,7 +3740,7 @@
*/
free(nfhp, M_NFSFH);
} else {
- error = nfscl_nget(vnode_mount(vp), vp,
+ error = nfscl_nget(vp->v_mount, vp,
nfhp, cnp, p, &np, NULL, LK_EXCLUSIVE);
if (!error) {
newvp = NFSTOV(np);
@@ -3868,7 +3868,7 @@
struct nfsrv_descript nfsd, *nd = &nfsd;
nfsattrbit_t attrbits;
int error;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
*attrflagp = 0;
NFSCL_REQSTART(nd, NFSPROC_COMMIT, vp);
@@ -3919,7 +3919,7 @@
struct nfsclclient *clp;
struct nfsfh *nfhp;
struct nfsrv_descript nfsd, *nd = &nfsd;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
u_int64_t off, len;
off_t start, end;
u_int32_t clidrev = 0;
@@ -3962,7 +3962,7 @@
do {
nd->nd_repstat = 0;
if (op == F_GETLK) {
- error = nfscl_getcl(vnode_mount(vp), cred, p, 1, &clp);
+ error = nfscl_getcl(vp->v_mount, cred, p, 1, &clp);
if (error)
return (error);
error = nfscl_lockt(vp, clp, off, len, fl, p, id, flags);
@@ -3979,7 +3979,7 @@
* We must loop around for all lockowner cases.
*/
callcnt = 0;
- error = nfscl_getcl(vnode_mount(vp), cred, p, 1, &clp);
+ error = nfscl_getcl(vp->v_mount, cred, p, 1, &clp);
if (error)
return (error);
do {
@@ -4304,7 +4304,7 @@
int error;
*attrflagp = 0;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (NFSHASNFSV4(nmp)) {
/*
* For V4, you actually do a getattr.
@@ -4383,7 +4383,7 @@
int error;
*attrflagp = 0;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (NFSHASNFSV4(nmp)) {
/*
* For V4, you actually do a getattr.
@@ -4673,7 +4673,7 @@
struct nfsrv_descript nfsd, *nd = &nfsd;
int error;
nfsattrbit_t attrbits;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
if (nfsrv_useacl == 0 || !NFSHASNFSV4(nmp))
return (EOPNOTSUPP);
@@ -4701,7 +4701,7 @@
struct acl *aclp, void *stuff)
{
int error;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
if (nfsrv_useacl == 0 || !NFSHASNFSV4(nmp))
return (EOPNOTSUPP);
@@ -4719,7 +4719,7 @@
struct nfsrv_descript nfsd, *nd = &nfsd;
int error;
nfsattrbit_t attrbits;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return (EOPNOTSUPP);
@@ -4727,7 +4727,7 @@
nfsm_stateidtom(nd, stateidp, NFSSTATEID_PUTSTATEID);
NFSZERO_ATTRBIT(&attrbits);
NFSSETBIT_ATTRBIT(&attrbits, NFSATTRBIT_ACL);
- (void) nfsv4_fillattr(nd, vnode_mount(vp), vp, aclp, NULL, NULL, 0,
+ (void) nfsv4_fillattr(nd, vp->v_mount, vp, aclp, NULL, NULL, 0,
&attrbits, NULL, NULL, 0, 0, 0, 0, (uint64_t)0, NULL);
error = nfscl_request(nd, vp, p, cred, stuff);
if (error)
@@ -5748,7 +5748,7 @@
uint32_t rwaccess, int docommit, struct ucred *cred, NFSPROC_T *p)
{
struct nfsnode *np = VTONFS(vp);
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfscllayout *layp;
struct nfscldevinfo *dip;
struct nfsclflayout *rflp;
@@ -6292,7 +6292,7 @@
uint32_t *tl;
int attrflag, error, retlen;
struct nfsrv_descript nfsd;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsrv_descript *nd = &nfsd;
struct nfssockreq *nrp;
struct nfsvattr na;
@@ -6362,7 +6362,7 @@
struct ucred *cred, NFSPROC_T *p)
{
uint32_t *tl;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
int attrflag, error, rlen, commit, committed = NFSWRITE_FILESYNC;
int32_t backup;
struct nfsrv_descript nfsd;
@@ -6493,7 +6493,7 @@
struct ucred *cred, NFSPROC_T *p)
{
uint32_t *tl;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
int attrflag, error, commit, committed = NFSWRITE_FILESYNC, rlen;
struct nfsrv_descript nfsd;
struct nfsrv_descript *nd = &nfsd;
@@ -6724,7 +6724,7 @@
{
uint32_t *tl;
struct nfsrv_descript nfsd, *nd = &nfsd;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfssockreq *nrp;
struct nfsvattr na;
int attrflag, error;
@@ -6872,7 +6872,7 @@
{
uint32_t *tl;
struct nfsrv_descript nfsd, *nd = &nfsd;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfssockreq *nrp;
nfsattrbit_t hints;
int error;
@@ -6976,7 +6976,7 @@
{
int error, expireret = 0, retrycnt, nostateid;
uint32_t clidrev = 0;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsfh *nfhp = NULL;
nfsv4stateid_t stateid;
off_t tmp_off;
@@ -8085,7 +8085,7 @@
{
int commit, error, expireret = 0, retrycnt;
u_int32_t clidrev = 0;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(invp));
+ struct nfsmount *nmp = VFSTONFS(invp->v_mount);
struct nfsfh *innfhp = NULL, *outnfhp = NULL;
nfsv4stateid_t instateid, outstateid;
void *inlckp, *outlckp;
@@ -8277,7 +8277,7 @@
{
int error, expireret = 0, retrycnt;
u_int32_t clidrev = 0;
- struct nfsmount *nmp = VFSTONFS(vnode_mount(vp));
+ struct nfsmount *nmp = VFSTONFS(vp->v_mount);
struct nfsnode *np = VTONFS(vp);
struct nfsfh *nfhp = NULL;
nfsv4stateid_t stateid;
Index: head/sys/fs/nfsclient/nfs_clstate.c
===================================================================
--- head/sys/fs/nfsclient/nfs_clstate.c
+++ head/sys/fs/nfsclient/nfs_clstate.c
@@ -238,7 +238,7 @@
if (nfhp != NULL)
nop = malloc(sizeof (struct nfsclopen) +
fhlen - 1, M_NFSCLOPEN, M_WAITOK);
- ret = nfscl_getcl(vnode_mount(vp), cred, p, 1, &clp);
+ ret = nfscl_getcl(vp->v_mount, cred, p, 1, &clp);
if (ret != 0) {
free(nowp, M_NFSCLOWNER);
if (nop != NULL)
@@ -272,7 +272,7 @@
ohp = &dp->nfsdl_owner;
} else {
/* For NFSv4.1 and this option, use a single open_owner. */
- if (NFSHASONEOPENOWN(VFSTONFS(vnode_mount(vp))))
+ if (NFSHASONEOPENOWN(VFSTONFS(vp->v_mount)))
nfscl_filllockowner(NULL, own, F_POSIX);
else
nfscl_filllockowner(p->td_proc, own, F_POSIX);
@@ -315,7 +315,7 @@
* exclusive lock for this case.
*/
if (lockit != 0) {
- if (NFSHASONEOPENOWN(VFSTONFS(vnode_mount(vp)))) {
+ if (NFSHASONEOPENOWN(VFSTONFS(vp->v_mount))) {
/*
* Get a shared lock on the OpenOwner, but first
* wait for any pending exclusive lock, so that the
@@ -525,7 +525,7 @@
if (vnode_vtype(vp) != VREG)
return (EISDIR);
np = VTONFS(vp);
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
NFSLOCKCLSTATE();
clp = nfscl_findcl(nmp);
if (clp == NULL) {
@@ -574,7 +574,7 @@
* If p != NULL, we want to search the parentage tree
* for a matching OpenOwner and use that.
*/
- if (NFSHASONEOPENOWN(VFSTONFS(vnode_mount(vp))))
+ if (NFSHASONEOPENOWN(VFSTONFS(vp->v_mount)))
nfscl_filllockowner(NULL, own, F_POSIX);
else
nfscl_filllockowner(p->td_proc, own, F_POSIX);
@@ -1031,7 +1031,7 @@
if (recovery)
clp = rclp;
else
- error = nfscl_getcl(vnode_mount(vp), cred, p, 1, &clp);
+ error = nfscl_getcl(vp->v_mount, cred, p, 1, &clp);
}
if (error) {
free(nlp, M_NFSCLLOCKOWNER);
@@ -1047,7 +1047,7 @@
} else {
nfscl_filllockowner(id, own, flags);
ownp = own;
- if (NFSHASONEOPENOWN(VFSTONFS(vnode_mount(vp))))
+ if (NFSHASONEOPENOWN(VFSTONFS(vp->v_mount)))
nfscl_filllockowner(NULL, openown, F_POSIX);
else
nfscl_filllockowner(p->td_proc, openown, F_POSIX);
@@ -1369,7 +1369,7 @@
end = NFS64BITSSET;
}
- error = nfscl_getcl(vnode_mount(vp), cred, p, 1, &clp);
+ error = nfscl_getcl(vp->v_mount, cred, p, 1, &clp);
if (error)
return (1);
nfscl_filllockowner(id, own, flags);
@@ -2984,7 +2984,7 @@
struct nfsclopen *op, *op2;
struct nfsfh *nfhp;
- clp = VFSTONFS(vnode_mount(vp))->nm_clp;
+ clp = VFSTONFS(vp->v_mount)->nm_clp;
if (clp == NULL) {
printf("nfscl dupopen NULL clp\n");
return;
@@ -3003,7 +3003,7 @@
NFSV4CL_LOCKNAMELEN)) {
NFSUNLOCKCLSTATE();
printf("DUP OWNER\n");
- nfscl_dumpstate(VFSTONFS(vnode_mount(vp)), 1, 1, 0, 0);
+ nfscl_dumpstate(VFSTONFS(vp->v_mount), 1, 1, 0, 0);
return;
}
}
@@ -3026,8 +3026,7 @@
op->nfso_stateid.other[2] == op2->nfso_stateid.other[2]) {
NFSUNLOCKCLSTATE();
printf("DUP STATEID\n");
- nfscl_dumpstate(VFSTONFS(vnode_mount(vp)), 1, 1, 0,
- 0);
+ nfscl_dumpstate(VFSTONFS(vp->v_mount), 1, 1, 0, 0);
return;
}
}
@@ -3061,8 +3060,8 @@
NFSUNLOCKCLSTATE();
printf("DUP OPEN\n");
}
- nfscl_dumpstate(VFSTONFS(vnode_mount(vp)), 1, 1,
- 0, 0);
+ nfscl_dumpstate(VFSTONFS(vp->v_mount), 1, 1, 0,
+ 0);
return;
}
}
@@ -3095,7 +3094,7 @@
struct nfsfh *nfhp;
int error, notdecr;
- error = nfscl_getcl(vnode_mount(vp), NULL, NULL, 1, &clp);
+ error = nfscl_getcl(vp->v_mount, NULL, NULL, 1, &clp);
if (error)
return (error);
*clpp = clp;
@@ -3170,7 +3169,7 @@
struct nfsclrecalllayout *recallp;
int error;
- error = nfscl_getcl(vnode_mount(vp), NULL, NULL, 1, &clp);
+ error = nfscl_getcl(vp->v_mount, NULL, NULL, 1, &clp);
if (error)
return (error);
*clpp = clp;
@@ -3213,8 +3212,7 @@
op->nfso_opencnt));
#endif
NFSUNLOCKCLSTATE();
- nfsrpc_doclose(VFSTONFS(vnode_mount(vp)), op,
- p);
+ nfsrpc_doclose(VFSTONFS(vp->v_mount), op, p);
NFSLOCKCLSTATE();
goto lookformore;
}
@@ -4341,7 +4339,7 @@
struct nfsmount *nmp;
np = VTONFS(vp);
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return (1);
NFSLOCKCLSTATE();
@@ -4375,7 +4373,7 @@
struct nfsmount *nmp;
np = VTONFS(vp);
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return (1);
NFSLOCKCLSTATE();
@@ -4411,7 +4409,7 @@
struct nfsnode *np;
int igotlock = 0, triedrecall = 0, needsrecall, retcnt = 0, islept;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
np = VTONFS(vp);
NFSLOCKCLSTATE();
/*
@@ -4508,7 +4506,7 @@
struct nfsnode *np;
int igotlock = 0, triedrecall = 0, needsrecall, retcnt = 0, islept;
- nmp = VFSTONFS(vnode_mount(fvp));
+ nmp = VFSTONFS(fvp->v_mount);
*gotfdp = 0;
*gottdp = 0;
NFSLOCKCLSTATE();
@@ -4677,7 +4675,7 @@
struct nfsnode *np = VTONFS(vp);
struct nfsmount *nmp;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return;
NFSLOCKCLSTATE();
@@ -4704,7 +4702,7 @@
struct nfsnode *np = VTONFS(vp);
struct nfsmount *nmp;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return;
NFSLOCKCLSTATE();
@@ -4731,7 +4729,7 @@
struct nfsnode *np = VTONFS(vp);
struct nfsmount *nmp;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return;
NFSLOCKCLSTATE();
@@ -4760,7 +4758,7 @@
struct nfsnode *np = VTONFS(vp);
struct nfsmount *nmp;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
if (!NFSHASNFSV4(nmp))
return;
NFSLOCKCLSTATE();
@@ -4974,7 +4972,7 @@
struct nfscllayout *lyp;
uint32_t iomode;
- if (vp->v_type != VREG || !NFSHASPNFS(VFSTONFS(vnode_mount(vp))) ||
+ if (vp->v_type != VREG || !NFSHASPNFS(VFSTONFS(vp->v_mount)) ||
nfscl_enablecallb == 0 || nfs_numnfscbd == 0 ||
(VTONFS(vp)->n_flag & NNOLAYOUT) != 0)
return;
@@ -5448,7 +5446,7 @@
mount_t mp;
struct nfsmount *nmp;
- mp = vnode_mount(vp);
+ mp = vp->v_mount;
nmp = VFSTONFS(mp);
if (NFSHASNOLAYOUTCOMMIT(nmp))
return (0);
Index: head/sys/fs/nfsclient/nfs_clvnops.c
===================================================================
--- head/sys/fs/nfsclient/nfs_clvnops.c
+++ head/sys/fs/nfsclient/nfs_clvnops.c
@@ -1498,7 +1498,7 @@
struct nfsvattr nfsva;
struct nfsmount *nmp;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
error = EIO;
attrflag = 0;
if (NFSHASPNFS(nmp))
@@ -1529,7 +1529,7 @@
int error, attrflag, ret;
struct nfsmount *nmp;
- nmp = VFSTONFS(vnode_mount(vp));
+ nmp = VFSTONFS(vp->v_mount);
error = EIO;
attrflag = 0;
if (NFSHASPNFS(nmp))
@@ -1687,7 +1687,7 @@
if (vap->va_vaflags & VA_EXCLUSIVE)
fmode |= O_EXCL;
dnp = VTONFS(dvp);
- nmp = VFSTONFS(vnode_mount(dvp));
+ nmp = VFSTONFS(dvp->v_mount);
again:
/* For NFSv4, wait until any remove is done. */
NFSLOCKNODE(dnp);
Index: head/sys/fs/nfsserver/nfs_nfsdserv.c
===================================================================
--- head/sys/fs/nfsserver/nfs_nfsdserv.c
+++ head/sys/fs/nfsserver/nfs_nfsdserv.c
@@ -422,7 +422,7 @@
if (!nd->nd_repstat) {
if (NFSVNO_NOTSETSIZE(&nva)) {
if (NFSVNO_EXRDONLY(exp) ||
- (vfs_flags(vnode_mount(vp)) & MNT_RDONLY))
+ (vfs_flags(vp->v_mount) & MNT_RDONLY))
nd->nd_repstat = EROFS;
} else {
if (vnode_vtype(vp) != VREG)

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 27, 7:36 PM (13 h, 42 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28059499
Default Alt Text
D25263.id.diff (21 KB)

Event Timeline