summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-01-19 20:03:43 +0000
committerkan <kan@FreeBSD.org>2004-01-19 20:03:43 +0000
commit1968ea331b9a0e1777a5f2629482c3e5ff851dc8 (patch)
treedf1cc5e709fbf50876692768b8efd022441ed7d8 /sys
parentacff10ceaccffd3e88bbb7bd07150b994577dccb (diff)
downloadFreeBSD-src-1968ea331b9a0e1777a5f2629482c3e5ff851dc8.zip
FreeBSD-src-1968ea331b9a0e1777a5f2629482c3e5ff851dc8.tar.gz
Spell magic '16' number as IO_SEQSHIFT.
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c2
-rw-r--r--sys/gnu/ext2fs/ext2_readwrite.c6
-rw-r--r--sys/gnu/fs/ext2fs/ext2_readwrite.c6
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c2
-rw-r--r--sys/ufs/ffs/ffs_vnops.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index 2e4eaf2..5105322 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 232e46f..ba79835 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 232e46f..ba79835 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 2e4eaf2..5105322 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 061ebc1..8ac3b91 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;
OpenPOWER on IntegriCloud