diff options
Diffstat (limited to 'sys/gnu/fs/ext2fs/ext2_inode.c')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_inode.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_inode.c b/sys/gnu/fs/ext2fs/ext2_inode.c index 207778c..d6c8500 100644 --- a/sys/gnu/fs/ext2fs/ext2_inode.c +++ b/sys/gnu/fs/ext2fs/ext2_inode.c @@ -75,7 +75,7 @@ ext2_update(vp, waitfor) struct vnode *vp; int waitfor; { - register struct ext2_sb_info *fs; + struct ext2_sb_info *fs; struct buf *bp; struct inode *ip; int error; @@ -123,17 +123,16 @@ ext2_truncate(vp, length, flags, cred, td) struct ucred *cred; struct thread *td; { - register struct vnode *ovp = vp; - register daddr_t lastblock; - register struct inode *oip; + struct vnode *ovp = vp; + daddr_t lastblock; + struct inode *oip; daddr_t bn, lbn, lastiblock[NIADDR], indir_lbn[NIADDR]; daddr_t oldblks[NDADDR + NIADDR], newblks[NDADDR + NIADDR]; - register struct ext2_sb_info *fs; + struct ext2_sb_info *fs; struct buf *bp; int offset, size, level; long count, nblocks, blocksreleased = 0; - register int i; - int aflags, error, allerror; + int aflags, error, i, allerror; off_t osize; /* printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length); @@ -283,7 +282,7 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length); * All whole direct blocks or frags. */ for (i = NDADDR - 1; i > lastblock; i--) { - register long bsize; + long bsize; bn = oip->i_db[i]; if (bn == 0) @@ -360,20 +359,18 @@ done: static int ext2_indirtrunc(ip, lbn, dbn, lastbn, level, countp) - register struct inode *ip; + struct inode *ip; daddr_t lbn, lastbn; daddr_t dbn; int level; long *countp; { - register int i; struct buf *bp; - register struct ext2_sb_info *fs = ip->i_e2fs; - register daddr_t *bap; + struct ext2_sb_info *fs = ip->i_e2fs; struct vnode *vp; - daddr_t *copy, nb, nlbn, last; + daddr_t *bap, *copy, nb, nlbn, last; long blkcount, factor; - int nblocks, blocksreleased = 0; + int i, nblocks, blocksreleased = 0; int error = 0, allerror = 0; /* |