Lines Matching full:np

94 	struct nfsnode *np;
98 np = VTONFS(vp);
99 NFSLOCKNODE(np);
100 nsize = np->n_size;
101 NFSUNLOCKNODE(np);
127 struct nfsnode *np;
130 np = VTONFS(vp);
143 NFSLOCKNODE(np);
144 if ((np->n_flag & NNONCACHE) && (vp->v_type == VREG)) {
145 NFSUNLOCKNODE(np);
149 NFSUNLOCKNODE(np);
274 struct nfsnode *np;
278 np = VTONFS(vp);
281 if (np->n_writecred != NULL)
282 cred = crhold(np->n_writecred);
300 NFSLOCKNODE(np);
302 (np->n_flag & NNONCACHE) && (vp->v_type == VREG)) {
303 NFSUNLOCKNODE(np);
305 NFSLOCKNODE(np);
310 if (offset + count > np->n_size) {
311 count = np->n_size - offset;
315 NFSUNLOCKNODE(np);
339 np->n_size - offset, npages * PAGE_SIZE);
365 struct nfsnode *np = VTONFS(vp);
373 NFSLOCKNODE(np);
374 if (np->n_flag & NMODIFIED) {
375 NFSUNLOCKNODE(np);
384 np->n_attrstamp = 0;
389 NFSLOCKNODE(np);
390 np->n_mtime = vattr.va_mtime;
391 NFSUNLOCKNODE(np);
393 NFSUNLOCKNODE(np);
397 NFSLOCKNODE(np);
398 if ((np->n_flag & NSIZECHANGED)
399 || (NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime))) {
400 NFSUNLOCKNODE(np);
406 NFSLOCKNODE(np);
407 np->n_mtime = vattr.va_mtime;
408 np->n_flag &= ~NSIZECHANGED;
410 NFSUNLOCKNODE(np);
435 struct nfsnode *np = VTONFS(vp);
485 NFSLOCKNODE(np);
486 nsize = np->n_size;
487 NFSUNLOCKNODE(np);
598 NFSLOCKNODE(np);
599 if (np->n_direofoffset
600 && uio->uio_offset >= np->n_direofoffset) {
601 NFSUNLOCKNODE(np);
605 NFSUNLOCKNODE(np);
637 NFSLOCKNODE(np);
638 if (np->n_direofoffset
639 && (i * NFS_DIRBLKSIZ) >= np->n_direofoffset) {
640 NFSUNLOCKNODE(np);
644 NFSUNLOCKNODE(np);
687 NFSLOCKNODE(np);
690 (np->n_direofoffset == 0 ||
691 (lbn + 1) * NFS_DIRBLKSIZ < np->n_direofoffset) &&
693 NFSUNLOCKNODE(np);
710 NFSLOCKNODE(np);
721 * in np->n_direofoffset and chop it off as an extra step
725 if (np->n_direofoffset && n > np->n_direofoffset - uio->uio_offset)
726 n = np->n_direofoffset - uio->uio_offset;
727 NFSUNLOCKNODE(np);
746 NFSLOCKNODE(np);
834 struct nfsnode *np = VTONFS(vp);
852 NFSLOCKNODE(np);
853 if (np->n_flag & NWRITEERR) {
854 np->n_flag &= ~NWRITEERR;
855 NFSUNLOCKNODE(np);
856 return (np->n_error);
858 NFSUNLOCKNODE(np);
874 if ((ioflag & IO_APPEND) || ((ioflag & IO_SYNC) && (np->n_flag &
895 np->n_attrstamp = 0;
904 NFSLOCKNODE(np);
905 orig_size = np->n_size;
906 NFSUNLOCKNODE(np);
922 np->n_attrstamp = 0;
928 NFSLOCKNODE(np);
929 uio->uio_offset = np->n_size;
930 NFSUNLOCKNODE(np);
979 NFSLOCKNODE(np);
980 nflag = np->n_flag;
981 NFSUNLOCKNODE(np);
999 np->n_attrstamp = 0;
1018 NFSLOCKNODE(np);
1019 if ((np->n_flag & NHASBEENLOCKED) == 0 &&
1024 if ((uio->uio_offset == np->n_size ||
1026 lbn == (np->n_size / biosize) &&
1027 uio->uio_offset + n > np->n_size)) && n) {
1028 NFSUNLOCKNODE(np);
1035 obcount = np->n_size - (lbn * biosize);
1041 NFSLOCKNODE(np);
1042 np->n_size = uio->uio_offset + n;
1043 np->n_flag |= NMODIFIED;
1044 np->n_flag &= ~NVNSETSZSKIP;
1045 vnode_pager_setsize(vp, np->n_size);
1046 NFSUNLOCKNODE(np);
1062 if ((off_t)lbn * biosize + bcount < np->n_size) {
1063 if ((off_t)(lbn + 1) * biosize < np->n_size)
1066 bcount = np->n_size - (off_t)lbn * biosize;
1068 NFSUNLOCKNODE(np);
1070 NFSLOCKNODE(np);
1071 if (uio->uio_offset + n > np->n_size) {
1072 np->n_size = uio->uio_offset + n;
1073 np->n_flag |= NMODIFIED;
1074 np->n_flag &= ~NVNSETSZSKIP;
1075 vnode_pager_setsize(vp, np->n_size);
1077 NFSUNLOCKNODE(np);
1126 NFSLOCKNODE(np);
1127 np->n_flag |= NMODIFIED;
1128 NFSUNLOCKNODE(np);
1255 NFSLOCKNODE(np);
1256 np->n_localmodtime = ts;
1257 NFSUNLOCKNODE(np);
1326 struct nfsnode *np = VTONFS(vp);
1378 NFSLOCKNODE(np);
1379 np->n_attrstamp = 0;
1382 NFSLOCKNODE(np);
1384 if ((np->n_flag & NMODIFIED) != 0) {
1385 np->n_localmodtime = ts;
1386 np->n_flag &= ~NMODIFIED;
1388 NFSUNLOCKNODE(np);
1554 struct nfsnode *np;
1562 np = VTONFS(vp);
1611 NFSLOCKNODE(np);
1612 if (NFS_TIMESPEC_COMPARE(&np->n_mtime, &np->n_vattr.na_mtime)) {
1613 NFSUNLOCKNODE(np);
1618 NFSUNLOCKNODE(np);
1677 NFSLOCKNODE(np);
1678 if ((off_t)bp->b_blkno * DEV_BSIZE + bp->b_dirtyend > np->n_size)
1679 bp->b_dirtyend = np->n_size - (off_t)bp->b_blkno * DEV_BSIZE;
1680 NFSUNLOCKNODE(np);
1772 bp->b_error = np->n_error = error;
1773 NFSLOCKNODE(np);
1774 np->n_flag |= NWRITEERR;
1775 np->n_attrstamp = 0;
1777 NFSUNLOCKNODE(np);
1805 struct nfsnode *np = VTONFS(vp);
1810 NFSLOCKNODE(np);
1811 tsize = np->n_size;
1812 np->n_size = nsize;
1813 NFSUNLOCKNODE(np);