diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-11 19:40:55 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-11 19:40:55 +0000 |
commit | 0f466d54ea302459597d7a62905ae74cf975b879 (patch) | |
tree | 90621050dcfac7221cd9c7e0c9fa4fae62339332 /ext2fs | |
parent | 67512ffaaefaaa43a27befc0ae7e4e98625ddc96 (diff) |
1999-07-11 Roland McGrath <roland@baalperazim.frob.com>
* dir.c (diskfs_get_directs): Fix sloppy bugs in last change.
* hyper.c (allocate_mod_map): Likewise.
* pager.c (get_page_buf): Likewise.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/dir.c | 3 | ||||
-rw-r--r-- | ext2fs/hyper.c | 1 | ||||
-rw-r--r-- | ext2fs/pager.c | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c index 03e5aab9..76fcd0ea 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -867,8 +867,7 @@ diskfs_get_directs (struct node *dp, allocsize = round_page (bufsiz); if (allocsize > *datacnt) - *data = (vm_address_t) mmap (0, allocsize, PROT_READ|PROT_WRITE, - MAP_ANON, 0, 0); + *data = mmap (0, allocsize, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); /* Scan through the entries to find ENTRY. If we encounter a -1 in the process then stop to fill it. When we run diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c index d9a1bc70..3377e649 100644 --- a/ext2fs/hyper.c +++ b/ext2fs/hyper.c @@ -42,7 +42,6 @@ allocate_mod_map (void) on any file pager blocks. In this case use a bitmap to record which global blocks are actually modified so the pager can write only them. */ { - error_t err; /* One bit per filesystem block. */ mod_map_size = sblock->s_blocks_count >> 3; modified_global_blocks = mmap (0, mod_map_size, PROT_READ|PROT_WRITE, diff --git a/ext2fs/pager.c b/ext2fs/pager.c index 1ccc0154..f2315c90 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -85,7 +85,6 @@ get_page_buf () buf = free_page_bufs; if (buf == 0) { - error_t err; spin_unlock (&free_page_bufs_lock); buf = mmap (0, vm_page_size, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); if (buf == (void *) -1) |