| /freebsd-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | seqlock.h | 39 struct seqcount { struct 42 typedef struct seqcount seqcount_t; argument 46 struct seqcount seql_count; 51 __seqcount_init(struct seqcount *seqcount, const char *name __unused, in __seqcount_init() argument 54 seqcount->seqc = 0; in __seqcount_init() 56 #define seqcount_init(seqcount) __seqcount_init(seqcount, NULL, NULL) argument 59 write_seqcount_begin(struct seqcount *seqcount) in write_seqcount_begin() argument 65 write_seqcount_end(struct seqcount *seqcount) in write_seqcount_end() argument 79 read_seqcount_begin(const struct seqcount *seqcount) in read_seqcount_begin() argument 81 return (seqc_read(&seqcount->seqc)); in read_seqcount_begin() [all …]
|
| /freebsd-13.1/sys/fs/fuse/ |
| H A D | fuse_io.c | 136 int err, n = 0, on = 0, seqcount; in fuse_read_biobackend() local 146 seqcount = ioflag >> IO_SEQSHIFT; in fuse_read_biobackend() 181 seqcount = MIN(seqcount, in fuse_read_biobackend() 184 totread, seqcount, 0, &bp); in fuse_read_biobackend() 185 } else if (seqcount > 1 && data->max_readahead_blocks >= 1) { in fuse_read_biobackend() 469 int n, on, seqcount, err = 0; in fuse_write_biobackend() local 473 seqcount = ioflag >> IO_SEQSHIFT; in fuse_write_biobackend() 699 cluster_write(vp, bp, filesize, seqcount, 0); in fuse_write_biobackend()
|
| /freebsd-13.1/sys/fs/ext2fs/ |
| H A D | ext2_balloc.c | 304 int seqcount = (flags & BA_SEQMASK) >> BA_SEQSHIFT; in ext2_balloc() local 306 if (seqcount && (vp->v_mount->mnt_flag & MNT_NOCLUSTERR) == 0) { in ext2_balloc() 309 MAXBSIZE, seqcount, 0, &nbp); in ext2_balloc()
|
| H A D | ext2_vnops.c | 2033 int error, orig_resid, seqcount; in ext2_read() local 2040 seqcount = ap->a_ioflag >> IO_SEQSHIFT; in ext2_read() 2082 NOCRED, blkoffset + uio->uio_resid, seqcount, in ext2_read() 2084 } else if (seqcount > 1) { in ext2_read() 2172 int blkoffset, error, flags, ioflag, resid, size, seqcount, xfersize; in ext2_write() local 2178 seqcount = ioflag >> IO_SEQSHIFT; in ext2_write() 2220 if (seqcount > BA_SEQMAX) in ext2_write() 2223 flags = seqcount << BA_SEQSHIFT; in ext2_write() 2299 cluster_write(vp, bp, ip->i_size, seqcount, 0); in ext2_write()
|
| /freebsd-13.1/sys/kern/ |
| H A D | vfs_cluster.c | 95 struct ucred *cred, long totread, int seqcount, int gbflags, in cluster_read() argument 117 maxra = seqcount; in cluster_read() 141 if (!seqcount) { in cluster_read() 646 cluster_write(struct vnode *vp, struct buf *bp, u_quad_t filesize, int seqcount, in cluster_write() argument 694 if (!async && seqcount > 0) { in cluster_write() 726 if (seqcount > 1) { in cluster_write() 780 if (seqcount > 1) { in cluster_write()
|
| /freebsd-13.1/sys/ufs/ffs/ |
| H A D | ffs_vnops.c | 653 int bflag, error, ioflag, seqcount; local 674 seqcount = ap->a_ioflag >> IO_SEQSHIFT; 748 seqcount, bflag, &bp); 749 } else if (seqcount > 1) { 842 int seqcount; local 860 seqcount = ap->a_ioflag >> IO_SEQSHIFT; 901 if (seqcount > BA_SEQMAX) 904 flags = seqcount << BA_SEQSHIFT; 993 cluster_write(vp, bp, ip->i_size, seqcount,
|
| H A D | ffs_balloc.c | 468 int seqcount = (flags & BA_SEQMASK) >> BA_SEQSHIFT; in ffs_balloc_ufs1() local 469 if (seqcount != 0 && in ffs_balloc_ufs1() 474 MAXBSIZE, seqcount, gbflags, &nbp); in ffs_balloc_ufs1() 1096 int seqcount = (flags & BA_SEQMASK) >> BA_SEQSHIFT; in ffs_balloc_ufs2() local 1097 if (seqcount != 0 && in ffs_balloc_ufs2() 1102 MAXBSIZE, seqcount, gbflags, &nbp); in ffs_balloc_ufs2()
|
| /freebsd-13.1/sys/fs/msdosfs/ |
| H A D | msdosfs_vnops.c | 531 int seqcount; in msdosfs_read() local 553 seqcount = ap->a_ioflag >> IO_SEQSHIFT; in msdosfs_read() 581 NOCRED, on + uio->uio_resid, seqcount, 0, &bp); in msdosfs_read() 582 } else if (seqcount > 1) { in msdosfs_read() 622 int seqcount; in msdosfs_write() local 705 seqcount = ioflag >> IO_SEQSHIFT; in msdosfs_write() 800 seqcount, 0); in msdosfs_write()
|
| /freebsd-13.1/sys/fs/cd9660/ |
| H A D | cd9660_vnops.c | 307 int seqcount; local 313 seqcount = ap->a_ioflag >> IO_SEQSHIFT; 339 if (seqcount > 1 &&
|
| /freebsd-13.1/sys/fs/nfsclient/ |
| H A D | nfs_clbio.c | 433 int biosize, bcount, error, i, n, nra, on, save2, seqcount; in ncl_bioread() local 468 seqcount = (int)((off_t)(ioflag >> IO_SEQSHIFT) * biosize / BKVASIZE); in ncl_bioread() 492 for (nra = 0; nra < nmp->nm_readahead && nra < seqcount && in ncl_bioread()
|