Lines Matching full:np

81 	struct smbnode *np = VTOSMB(vp);  in smbfs_readvdir()  local
85 np = VTOSMB(vp); in smbfs_readvdir()
86 SMBVDEBUG("dirname='%s'\n", np->n_name); in smbfs_readvdir()
99 de.d_fileno = (offset == 0) ? np->n_ino : in smbfs_readvdir()
100 (np->n_parent ? np->n_parentino : 2); in smbfs_readvdir()
119 if (offset != np->n_dirofs || np->n_dirseq == NULL) { in smbfs_readvdir()
120 SMBVDEBUG("Reopening search %ld:%ld\n", offset, np->n_dirofs); in smbfs_readvdir()
121 if (np->n_dirseq) { in smbfs_readvdir()
122 smbfs_findclose(np->n_dirseq, scred); in smbfs_readvdir()
123 np->n_dirseq = NULL; in smbfs_readvdir()
125 np->n_dirofs = 2; in smbfs_readvdir()
126 error = smbfs_findopen(np, "*", 1, in smbfs_readvdir()
133 np->n_dirseq = ctx; in smbfs_readvdir()
135 ctx = np->n_dirseq; in smbfs_readvdir()
136 while (np->n_dirofs < offset) { in smbfs_readvdir()
137 error = smbfs_findnext(ctx, offset - np->n_dirofs++, scred); in smbfs_readvdir()
139 smbfs_findclose(np->n_dirseq, scred); in smbfs_readvdir()
140 np->n_dirseq = NULL; in smbfs_readvdir()
150 np->n_dirofs++; in smbfs_readvdir()
185 struct smbnode *np = VTOSMB(vp); in smbfs_readvnode() local
219 if (np->n_flag & NMODIFIED) { in smbfs_readvnode()
224 np->n_mtime.tv_sec = vattr.va_mtime.tv_sec; in smbfs_readvnode()
229 if (np->n_mtime.tv_sec != vattr.va_mtime.tv_sec) { in smbfs_readvnode()
233 np->n_mtime.tv_sec = vattr.va_mtime.tv_sec; in smbfs_readvnode()
238 error = smb_read(smp->sm_share, np->n_fid, uiop, scred); in smbfs_readvnode()
248 struct smbnode *np = VTOSMB(vp); in smbfs_writevnode() local
265 if (np->n_flag & NMODIFIED) { in smbfs_writevnode()
280 uiop->uio_offset = np->n_size; in smbfs_writevnode()
292 error = smb_write(smp->sm_share, np->n_fid, uiop, scred); in smbfs_writevnode()
297 if (uiop->uio_offset > np->n_size) { in smbfs_writevnode()
298 np->n_size = uiop->uio_offset; in smbfs_writevnode()
299 vnode_pager_setsize(vp, np->n_size); in smbfs_writevnode()
312 struct smbnode *np = VTOSMB(vp); in smbfs_doio() local
334 error = smb_read(smp->sm_share, np->n_fid, uiop, scred); in smbfs_doio()
353 if (((bp->b_blkno * DEV_BSIZE) + bp->b_dirtyend) > np->n_size) in smbfs_doio()
354 bp->b_dirtyend = np->n_size - (bp->b_blkno * DEV_BSIZE); in smbfs_doio()
361 error = smb_write(smp->sm_share, np->n_fid, uiop, scred); in smbfs_doio()
428 struct smbnode *np; in smbfs_getpages()
441 np = VTOSMB(vp); in smbfs_getpages()
479 error = smb_read(smp->sm_share, np->n_fid, &uio, scred); in smbfs_getpages()
561 struct smbnode *np; in smbfs_putpages() local
568 np = VTOSMB(vp); in smbfs_putpages()
600 error = smb_write(smp->sm_share, np->n_fid, &uio, scred); in smbfs_putpages()
624 struct smbnode *np = VTOSMB(vp); in smbfs_vinvalbuf() local
630 while (np->n_flag & NFLUSHINPROG) { in smbfs_vinvalbuf()
631 np->n_flag |= NFLUSHWANT; in smbfs_vinvalbuf()
632 error = tsleep(&np->n_flag, PRIBIO + 2, "smfsvinv", 2 * hz); in smbfs_vinvalbuf()
637 np->n_flag |= NFLUSHINPROG; in smbfs_vinvalbuf()
643 np->n_flag &= ~NFLUSHINPROG; in smbfs_vinvalbuf()
644 if (np->n_flag & NFLUSHWANT) { in smbfs_vinvalbuf()
645 np->n_flag &= ~NFLUSHWANT; in smbfs_vinvalbuf()
646 wakeup(&np->n_flag); in smbfs_vinvalbuf()
652 np->n_flag &= ~(NMODIFIED | NFLUSHINPROG); in smbfs_vinvalbuf()
653 if (np->n_flag & NFLUSHWANT) { in smbfs_vinvalbuf()
654 np->n_flag &= ~NFLUSHWANT; in smbfs_vinvalbuf()
655 wakeup(&np->n_flag); in smbfs_vinvalbuf()