convention): get credentials, etc, via proc; u.u_nd, u.u_spare are gone;
SCCS-vsn: sys/nfs/nfs_bio.c 7.18
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)nfs_bio.c 7.17 (Berkeley) %G%
+ * @(#)nfs_bio.c 7.18 (Berkeley) %G%
#include "buf.h"
#include "vnode.h"
#include "trace.h"
#include "mount.h"
#include "buf.h"
#include "vnode.h"
#include "trace.h"
#include "mount.h"
+#include "resourcevar.h"
+
#include "nfsnode.h"
#include "nfsv2.h"
#include "nfs.h"
#include "nfsnode.h"
#include "nfsv2.h"
#include "nfs.h"
int ioflag;
struct ucred *cred;
{
int ioflag;
struct ucred *cred;
{
+ struct proc *p = curproc; /* XXX */
register int biosize;
struct buf *bp;
struct nfsnode *np = VTONFS(vp);
register int biosize;
struct buf *bp;
struct nfsnode *np = VTONFS(vp);
return (error);
uio->uio_offset = np->n_size;
}
return (error);
uio->uio_offset = np->n_size;
}
- return (nfs_writerpc(vp, uio, cred, u.u_procp));
+ return (nfs_writerpc(vp, uio, cred, p));
}
#ifdef notdef
cnt = uio->uio_resid;
}
#ifdef notdef
cnt = uio->uio_resid;
* file servers have no limits, i don't think it matters
*/
if (uio->uio_offset + uio->uio_resid >
* file servers have no limits, i don't think it matters
*/
if (uio->uio_offset + uio->uio_resid >
- u.u_rlimit[RLIMIT_FSIZE].rlim_cur) {
- psignal(u.u_procp, SIGXFSZ);
+ p->p_rlimit[RLIMIT_FSIZE].rlim_cur) {
+ psignal(p, SIGXFSZ);
bp->b_dirtyoff = MIN(on, bp->b_dirtyoff);
bp->b_dirtyend = MAX((on+n), bp->b_dirtyend);
} else {
bp->b_dirtyoff = MIN(on, bp->b_dirtyoff);
bp->b_dirtyend = MAX((on+n), bp->b_dirtyend);
} else {
- bp->b_proc = u.u_procp;
if (error = bwrite(bp))
return (error);
goto again;
if (error = bwrite(bp))
return (error);
goto again;