diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1994-09-27 19:24:51 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1994-09-27 19:24:51 +0000 |
| commit | c427330289e857525ac44e0f428343868bba405e (patch) | |
| tree | 49f85f326b512737fbff6d7fda24ef7e8618ff83 /ufs | |
| parent | a291563796dc0e60b318dd2e7aea61e55a7320c5 (diff) | |
Formerly sizes.c.~22~
Diffstat (limited to 'ufs')
| -rw-r--r-- | ufs/sizes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index 11efc2b8..0f0fd427 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -481,9 +481,9 @@ diskfs_grow (struct node *np, { int newallocsize; if (lbn < NDADDR) - newallocsize = (lbn - 1) * sblock->fs_bsize + size; + newallocsize = lbn * sblock->fs_bsize + size; else - newallocsize = lbn * sblock->fs_bsize; + newallocsize = (lbn + 1) * sblock->fs_bsize; assert (newallocsize > np->allocsize); np->allocsize = newallocsize; } |
