Home
last modified time | relevance | path

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

/freebsd-13.1/sys/kern/
H A Dvfs_vnops.c569 return (fp->f_seqcount[rw] << IO_SEQSHIFT); in sequential_heuristic()
578 if ((uio->uio_offset == 0 && fp->f_seqcount[rw] > 0) || in sequential_heuristic()
590 fp->f_seqcount[rw] = IO_SEQMAX; in sequential_heuristic()
592 fp->f_seqcount[rw] += howmany(uio->uio_resid, 16384); in sequential_heuristic()
593 if (fp->f_seqcount[rw] > IO_SEQMAX) in sequential_heuristic()
594 fp->f_seqcount[rw] = IO_SEQMAX; in sequential_heuristic()
596 return (fp->f_seqcount[rw] << IO_SEQSHIFT); in sequential_heuristic()
600 if (fp->f_seqcount[rw] > 1) in sequential_heuristic()
601 fp->f_seqcount[rw] = 1; in sequential_heuristic()
603 fp->f_seqcount[rw] = 0; in sequential_heuristic()
H A Dkern_descrip.c808 fp->f_seqcount[UIO_READ] = MIN(IO_SEQMAX, in kern_fcntl()
2969 fp->f_seqcount[UIO_READ] = 1; in finit_vnode()
2970 fp->f_seqcount[UIO_WRITE] = 1; in finit_vnode()
/freebsd-13.1/sys/compat/cloudabi/
H A Dcloudabi_file.c290 fp->f_seqcount[UIO_READ] = 1; in cloudabi_sys_file_open()
291 fp->f_seqcount[UIO_WRITE] = 1; in cloudabi_sys_file_open()
/freebsd-13.1/sys/sys/
H A Dfile.h193 int16_t f_seqcount[2]; /* (a) Count of seq. reads and writes. */ member