summaryrefslogtreecommitdiff
path: root/ext2fs/pager.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-04 13:00:26 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-04 13:00:26 +0000
commit176b24ab0535a80d697f915223538ea70d92c49c (patch)
tree6f5b7e7ad43c4b68c301ce0422864ccd87183151 /ext2fs/pager.c
parentde729a3081fad384c86c90822c66cf48cf789c32 (diff)
1999-09-04 Thomas Bushnell, BSG <tb@mit.edu>
* pager.c (file_pager_write_page): Don't report errors on writes that extend past NODE->allocsize. This avoids a race between sync and truncate. Reported by Mark Kettenis <kettenis@wins.uva.nl>.
Diffstat (limited to 'ext2fs/pager.c')
-rw-r--r--ext2fs/pager.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index f2315c90..8981390e 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -374,10 +374,7 @@ file_pager_write_page (struct node *node, vm_offset_t offset, void *buf)
pending_blocks_init (&pb, buf);
if (offset >= node->allocsize)
- {
- err = EIO;
- left = 0;
- }
+ left = 0;
else if (offset + left > node->allocsize)
left = node->allocsize - offset;