From 6bd39fe97840366e063fc9383443bc0d3076df53 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Mon, 19 Jan 2004 20:03:43 +0000 Subject: [PATCH] Spell magic '16' number as IO_SEQSHIFT. --- sys/fs/cd9660/cd9660_vnops.c | 2 +- sys/gnu/ext2fs/ext2_readwrite.c | 6 +++--- sys/gnu/fs/ext2fs/ext2_readwrite.c | 6 +++--- sys/isofs/cd9660/cd9660_vnops.c | 2 +- sys/ufs/ffs/ffs_vnops.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c index 2e4eaf293c55..510532271c3b 100644 --- a/sys/fs/cd9660/cd9660_vnops.c +++ b/sys/fs/cd9660/cd9660_vnops.c @@ -272,7 +272,7 @@ cd9660_read(ap) int seqcount; long size, n, on; - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; if (uio->uio_resid == 0) return (0); diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c index 232e46f71ddf..ba798354f347 100644 --- a/sys/gnu/ext2fs/ext2_readwrite.c +++ b/sys/gnu/ext2fs/ext2_readwrite.c @@ -70,7 +70,7 @@ READ(ap) off_t bytesinfile; long size, xfersize, blkoffset; int error, orig_resid; - int seqcount = ap->a_ioflag >> 16; + int seqcount = ap->a_ioflag >> IO_SEQSHIFT; u_short mode; vp = ap->a_vp; @@ -114,7 +114,7 @@ READ(ap) else if ((vp->v_mount->mnt_flag & MNT_NOCLUSTERR) == 0) error = cluster_read(vp, ip->i_size, lbn, size, NOCRED, - uio->uio_resid, (ap->a_ioflag >> 16), &bp); + uio->uio_resid, (ap->a_ioflag >> IO_SEQSHIFT), &bp); else if (seqcount > 1) { int nextsize = BLKSIZE(fs, ip, nextlbn); error = breadn(vp, lbn, @@ -179,7 +179,7 @@ WRITE(ap) int blkoffset, error, flags, ioflag, resid, size, xfersize; ioflag = ap->a_ioflag; - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; uio = ap->a_uio; vp = ap->a_vp; ip = VTOI(vp); diff --git a/sys/gnu/fs/ext2fs/ext2_readwrite.c b/sys/gnu/fs/ext2fs/ext2_readwrite.c index 232e46f71ddf..ba798354f347 100644 --- a/sys/gnu/fs/ext2fs/ext2_readwrite.c +++ b/sys/gnu/fs/ext2fs/ext2_readwrite.c @@ -70,7 +70,7 @@ READ(ap) off_t bytesinfile; long size, xfersize, blkoffset; int error, orig_resid; - int seqcount = ap->a_ioflag >> 16; + int seqcount = ap->a_ioflag >> IO_SEQSHIFT; u_short mode; vp = ap->a_vp; @@ -114,7 +114,7 @@ READ(ap) else if ((vp->v_mount->mnt_flag & MNT_NOCLUSTERR) == 0) error = cluster_read(vp, ip->i_size, lbn, size, NOCRED, - uio->uio_resid, (ap->a_ioflag >> 16), &bp); + uio->uio_resid, (ap->a_ioflag >> IO_SEQSHIFT), &bp); else if (seqcount > 1) { int nextsize = BLKSIZE(fs, ip, nextlbn); error = breadn(vp, lbn, @@ -179,7 +179,7 @@ WRITE(ap) int blkoffset, error, flags, ioflag, resid, size, xfersize; ioflag = ap->a_ioflag; - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; uio = ap->a_uio; vp = ap->a_vp; ip = VTOI(vp); diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index 2e4eaf293c55..510532271c3b 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -272,7 +272,7 @@ cd9660_read(ap) int seqcount; long size, n, on; - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; if (uio->uio_resid == 0) return (0); diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 061ebc10bec4..8ac3b91ab9b4 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -373,7 +373,7 @@ ffs_read(ap) GIANT_REQUIRED; - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; ip = VTOI(vp); #ifdef DIAGNOSTIC @@ -603,7 +603,7 @@ ffs_write(ap) GIANT_REQUIRED; extended = 0; - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; ip = VTOI(vp); object = vp->v_object;