Parent Directory | Revision Log | Patch
revision 1.44 by roland, Tue Jun 11 21:40:58 2002 UTC | revision 1.45 by roland, Thu Aug 1 00:59:18 2002 UTC | |
---|---|---|
# | Line 585 diskfs_direnter_hard(struct node *dp, | Line 585 diskfs_direnter_hard(struct node *dp, |
585 | assert (needed <= DIRBLKSIZ); | assert (needed <= DIRBLKSIZ); |
586 | ||
587 | oldsize = dp->dn_stat.st_size; | oldsize = dp->dn_stat.st_size; |
588 | if ((off_t)(oldsize + DIRBLKSIZ) != dp->dn_stat.st_size) | if ((off_t)(oldsize + DIRBLKSIZ) != dp->dn_stat.st_size + DIRBLKSIZ) |
589 | { | { |
590 | /* We can't possibly map the whole directory in. */ | /* We can't possibly map the whole directory in. */ |
591 | munmap ((caddr_t) ds->mapbuf, ds->mapextent); | munmap ((caddr_t) ds->mapbuf, ds->mapextent); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |