diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-11 19:25:17 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-11 19:25:17 +0000 |
commit | de938e4059cac64f6b3db3f757aeed24ca149f05 (patch) | |
tree | a797eda1cd0feac0206bc7781083c6804060cd74 /sys/fs | |
parent | 4c7f14937f70cb9c4c3cc0f3179a5ee639a7152f (diff) | |
download | FreeBSD-src-de938e4059cac64f6b3db3f757aeed24ca149f05.zip FreeBSD-src-de938e4059cac64f6b3db3f757aeed24ca149f05.tar.gz |
MFC r256448, r257029;
Make di_blocks unsigned in UFS1 as is the case already for UFS2.
Most of the code between UFS1 and UFS2 is shared so this change
is pretty safe. Not only this makes UFS1 and 2 consistent but it
also matches what NetBSD and MacOS X have for some years now.
UFS2: make di_extsize unsigned.
di_extsize is the EA size and as such it should be unsigned.
Adjust related types for consistency.
Reviewed by: mckusick
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_vnops.c b/sys/fs/ext2fs/ext2_vnops.c index c5be7d0..04ef9e2 100644 --- a/sys/fs/ext2fs/ext2_vnops.c +++ b/sys/fs/ext2fs/ext2_vnops.c @@ -1689,7 +1689,7 @@ ext2_ind_read(struct vop_read_args *ap) NOCRED, blkoffset + uio->uio_resid, seqcount, 0, &bp); } else if (seqcount > 1) { - int nextsize = blksize(fs, ip, nextlbn); + u_int nextsize = blksize(fs, ip, nextlbn); error = breadn(vp, lbn, size, &nextlbn, &nextsize, 1, NOCRED, &bp); } else |