From a597908fd2d67feda7a4b3ba2e351e955226506a Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 20 Apr 1995 23:35:42 +0000 Subject: Formerly pager.c.~18~ --- ext2fs/pager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext2fs/pager.c b/ext2fs/pager.c index bf934154..c7e4204d 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -50,7 +50,7 @@ find_block (struct node *node, vm_offset_t offset, rwlock_reader_lock (*node_lock); } - if (offset + block_size >= node->allocsize) + if (offset + block_size > node->allocsize) return EIO; err = ext2_getblk (node, offset >> log2_block_size, create, &bptr); @@ -318,7 +318,7 @@ disk_pager_write_page (vm_offset_t page, vm_address_t buf) while (length > 0 && !err) { daddr_t block = boffs_block (offs); - if (!clear_bit (block, modified_global_blocks)) + if (clear_bit (block, modified_global_blocks)) /* This block's been modified, so write it out. */ err = pending_blocks_add (&pb, block); else -- cgit v1.2.3