path: root/sys/fs/ext2fs/ext2_balloc.c
diff options
authorPedro F. Giffuni <pfg@FreeBSD.org>2013-01-22 18:54:03 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2013-01-22 18:54:03 +0000
commit1d04725a7a80f6863d281a0610bc7e901c96ebb4 (patch)
tree322db2ef8acab2121389fe52d9299a78e91a9707 /sys/fs/ext2fs/ext2_balloc.c
parent6f1efb0f4bc18ba33c51f38e879a0485fc2edbb8 (diff)
ext2fs: make some inode fields match the ext2 spec.
Ext2fs uses unsigned fields in its dinode struct. FreeBSD can have negative values in some of those fields and the inode is meant to interact with the system so we have never respected the unsigned nature of most of those fields. Block numbers and the NFS generation number do not need to be signed so redefine them as unsigned to better match the on-disk information. MFC after: 1 week
Notes: svn path=/head/; revision=245820
Diffstat (limited to 'sys/fs/ext2fs/ext2_balloc.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_balloc.c b/sys/fs/ext2fs/ext2_balloc.c
index 6e60c6e299b9..1861f692890c 100644
--- a/sys/fs/ext2fs/ext2_balloc.c
+++ b/sys/fs/ext2fs/ext2_balloc.c
@@ -69,7 +69,7 @@ ext2_balloc(ip, lbn, size, cred, bpp, flags)
struct buf *bp, *nbp;
struct vnode *vp = ITOV(ip);
struct indir indirs[NIADDR + 2];
- int32_t newb, *bap, pref;
+ uint32_t newb, *bap, pref;
int osize, nsize, num, i, error;
*bpp = NULL;