Lines Matching refs:np

68 	struct nfsnode *np = VTONFS(vp);  in nfs_bioread()  local
103 if (np->n_flag & NMODIFIED) { in nfs_bioread()
104 NFS_INVALIDATE_ATTRCACHE(np); in nfs_bioread()
108 np->n_mtime = vattr.va_mtime; in nfs_bioread()
113 if (timespeccmp(&np->n_mtime, &vattr.va_mtime, !=)) { in nfs_bioread()
117 np->n_mtime = vattr.va_mtime; in nfs_bioread()
124 if (np->n_rcred) in nfs_bioread()
125 crfree(np->n_rcred); in nfs_bioread()
126 np->n_rcred = cred; in nfs_bioread()
147 (lbn + 1 + nra) * biosize < np->n_size; nra++) { in nfs_bioread()
180 offdiff = np->n_size - uio->uio_offset; in nfs_bioread()
248 struct nfsnode *np = VTONFS(vp); in nfs_write() local
266 if (np->n_flag & NWRITEERR) { in nfs_write()
267 np->n_flag &= ~NWRITEERR; in nfs_write()
268 return (np->n_error); in nfs_write()
273 if (np->n_flag & NMODIFIED) { in nfs_write()
274 NFS_INVALIDATE_ATTRCACHE(np); in nfs_write()
280 NFS_INVALIDATE_ATTRCACHE(np); in nfs_write()
284 uio->uio_offset = np->n_size; in nfs_write()
299 if (np->n_wcred) in nfs_write()
300 crfree(np->n_wcred); in nfs_write()
301 np->n_wcred = cred; in nfs_write()
328 np->n_flag |= NMODIFIED; in nfs_write()
329 if (uio->uio_offset + n > np->n_size) { in nfs_write()
330 np->n_size = uio->uio_offset + n; in nfs_write()
331 uvm_vnp_setsize(vp, np->n_size); in nfs_write()
333 } else if (uio->uio_offset + n < np->n_size) in nfs_write()
381 rw_enter_write(&np->n_commitlock); in nfs_write()
387 rw_exit_write(&np->n_commitlock); in nfs_write()
450 struct nfsnode *np = VTONFS(vp); in nfs_vinvalbuf() local
463 while (np->n_flag & NFLUSHINPROG) { in nfs_vinvalbuf()
464 np->n_flag |= NFLUSHWANT; in nfs_vinvalbuf()
465 error = tsleep_nsec(&np->n_flag, PRIBIO|sintr, "nfsvinval", in nfs_vinvalbuf()
472 np->n_flag |= NFLUSHINPROG; in nfs_vinvalbuf()
476 np->n_flag &= ~NFLUSHINPROG; in nfs_vinvalbuf()
477 if (np->n_flag & NFLUSHWANT) { in nfs_vinvalbuf()
478 np->n_flag &= ~NFLUSHWANT; in nfs_vinvalbuf()
479 wakeup(&np->n_flag); in nfs_vinvalbuf()
485 np->n_flag &= ~(NMODIFIED | NFLUSHINPROG); in nfs_vinvalbuf()
486 if (np->n_flag & NFLUSHWANT) { in nfs_vinvalbuf()
487 np->n_flag &= ~NFLUSHWANT; in nfs_vinvalbuf()
488 wakeup(&np->n_flag); in nfs_vinvalbuf()
534 struct nfsnode *np; in nfs_doio() local
541 np = VTONFS(vp); in nfs_doio()
592 len = np->n_size - ((((off_t)bp->b_blkno) << DEV_BSHIFT) in nfs_doio()
604 (timespeccmp(&np->n_mtime, &np->n_vattr.va_mtime, !=))) { in nfs_doio()
641 rw_enter_write(&np->n_commitlock); in nfs_doio()
649 rw_exit_write(&np->n_commitlock); in nfs_doio()
675 bp->b_error = np->n_error = error; in nfs_doio()
676 np->n_flag |= NWRITEERR; in nfs_doio()