diff options
-rw-r--r-- | ext2fs/inode.c | 10 | ||||
-rw-r--r-- | ext2fs/pager.c | 25 |
2 files changed, 20 insertions, 15 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 68962037..92b00ad9 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -578,10 +578,12 @@ diskfs_write_disknode (struct node *np, int wait) { struct ext2_inode *di = write_node (np); if (di) - if (wait) - sync_global_ptr (di, 1); - else - record_global_poke (di); + { + if (wait) + sync_global_ptr (di, 1); + else + record_global_poke (di); + } } /* Set *ST with appropriate values to reflect the current state of the diff --git a/ext2fs/pager.c b/ext2fs/pager.c index 1b3c3cdc..ff42ab63 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -180,17 +180,20 @@ file_pager_read_page (struct node *node, vm_offset_t page, return EIO; if (new_buf != *buf + offs) - /* The read went into a different buffer than the one we passed. */ - if (offs == 0) - /* First read, make the returned page be our buffer. */ - *buf = new_buf; - else - /* We've already got some buffer, so copy into it. */ - { - bcopy (new_buf, *buf + offs, new_len); - free_page_buf (new_buf); /* Return NEW_BUF to our pool. */ - STAT_INC (file_pagein_freed_bufs); - } + { + /* The read went into a different buffer than the one we + passed. */ + if (offs == 0) + /* First read, make the returned page be our buffer. */ + *buf = new_buf; + else + /* We've already got some buffer, so copy into it. */ + { + bcopy (new_buf, *buf + offs, new_len); + free_page_buf (new_buf); /* Return NEW_BUF to our pool. */ + STAT_INC (file_pagein_freed_bufs); + } + } offs += new_len; num_pending_blocks = 0; |