diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-09-29 08:07:32 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-09-29 08:07:32 +0000 |
| commit | 9702cd04220bc0ac845bdeda10bbefe6edcc28a1 (patch) | |
| tree | 2d8356afec90527407dcaddd6c9563f949c441ff /sys/gnu/fs/ext2fs/ext2_alloc.c | |
| parent | 5d20b9915f32338750964c8a1816651e185e1f7d (diff) | |
Notes
Diffstat (limited to 'sys/gnu/fs/ext2fs/ext2_alloc.c')
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c index c47f597c306d..21b9165542b6 100644 --- a/sys/gnu/fs/ext2fs/ext2_alloc.c +++ b/sys/gnu/fs/ext2fs/ext2_alloc.c @@ -416,8 +416,10 @@ ext2_valloc(pvp, mode, cred, vpp) ip->i_blocks = 0; ip->i_flags = 0; /* now we want to make sure that the block pointers are zeroed out */ - for(i = 0; i < EXT2_NDIR_BLOCKS; i++) + for (i = 0; i < NDADDR; i++) ip->i_db[i] = 0; + for (i = 0; i < NIADDR; i++) + ip->i_ib[i] = 0; /* * Set up a new generation number for this inode. |
