diff options
author | Miles Bader <miles@gnu.org> | 1995-04-20 23:35:42 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-20 23:35:42 +0000 |
commit | a597908fd2d67feda7a4b3ba2e351e955226506a (patch) | |
tree | 283ea42d0aafdd024674fff17715512bab273a36 | |
parent | 73f6e5b65f2cea64d3fc055b7d542290605a85ad (diff) |
Formerly pager.c.~18~
-rw-r--r-- | ext2fs/pager.c | 4 |
1 files 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 |