diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1996-01-01 21:38:04 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1996-01-01 21:38:04 +0000 |
| commit | 8854b41ec40b311f04cf2711e50302c5c0340207 (patch) | |
| tree | 234a3dbfa9b7a302501ba92d7b28811797b7dc58 /ufs | |
| parent | d0f17bee98ce10720e3a3bef5c81d69a07765d3a (diff) | |
(pager_unlock_page): When allocating block in direct array, clear it
synchronously just like we do when it goes in the indirect array.
Diffstat (limited to 'ufs')
| -rw-r--r-- | ufs/pager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ufs/pager.c b/ufs/pager.c index 87217908..26f5f322 100644 --- a/ufs/pager.c +++ b/ufs/pager.c @@ -1,5 +1,5 @@ /* Pager for ufs - Copyright (C) 1994, 1995 Free Software Foundation + Copyright (C) 1994, 1995, 1996 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -244,6 +244,8 @@ pager_unlock_page (struct user_pager_info *pager, if (err) goto out; assert (lblkno (sblock, address) < NDADDR); + diskfs_device_write_sync (fsbtodb (sblock, bno), + zeroblock, sblock->fs_bsize); indirs[0].bno = di->di_db[lblkno (sblock, address)] = bno; record_poke (di, sizeof (struct dinode)); } |
