Home
last modified time | relevance | path

Searched refs:f_seqcount (Results 1 – 3 of 3) sorted by relevance

/f-stack/freebsd/kern/
H A Dvfs_vnops.c515 return (fp->f_seqcount[rw] << IO_SEQSHIFT); in sequential_heuristic()
524 if ((uio->uio_offset == 0 && fp->f_seqcount[rw] > 0) || in sequential_heuristic()
536 fp->f_seqcount[rw] = IO_SEQMAX; in sequential_heuristic()
538 fp->f_seqcount[rw] += howmany(uio->uio_resid, 16384); in sequential_heuristic()
539 if (fp->f_seqcount[rw] > IO_SEQMAX) in sequential_heuristic()
540 fp->f_seqcount[rw] = IO_SEQMAX; in sequential_heuristic()
542 return (fp->f_seqcount[rw] << IO_SEQSHIFT); in sequential_heuristic()
546 if (fp->f_seqcount[rw] > 1) in sequential_heuristic()
547 fp->f_seqcount[rw] = 1; in sequential_heuristic()
549 fp->f_seqcount[rw] = 0; in sequential_heuristic()
H A Dkern_descrip.c798 fp->f_seqcount[UIO_READ] = MIN(IO_SEQMAX, in kern_fcntl()
2868 fp->f_seqcount[UIO_READ] = 1; in finit_vnode()
2869 fp->f_seqcount[UIO_WRITE] = 1; in finit_vnode()
/f-stack/freebsd/sys/
H A Dfile.h192 int16_t f_seqcount[2]; /* (a) Count of seq. reads and writes. */ member