patch-2.0.12 linux/mm/filemap.c
Next file: linux/mm/page_alloc.c
Previous file: linux/include/net/netrom.h
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Fri Aug 9 14:55:35 1996
- Orig file:
v2.0.11/linux/mm/filemap.c
- Orig date:
Mon Aug 5 10:13:55 1996
diff -u --recursive --new-file v2.0.11/linux/mm/filemap.c linux/mm/filemap.c
@@ -78,7 +78,7 @@
page->prev = NULL;
remove_page_from_hash_queue(page);
page->inode = NULL;
- free_page(page_address(page));
+ __free_page(page);
continue;
}
}
@@ -111,15 +111,16 @@
page->prev = NULL;
remove_page_from_hash_queue(page);
page->inode = NULL;
- free_page(page_address(page));
+ __free_page(page);
continue;
}
p = &page->next;
offset = start - offset;
/* partial truncate, clear end of page */
if (offset < PAGE_SIZE) {
- memset((void *) (offset + page_address(page)), 0, PAGE_SIZE - offset);
- flush_page_to_ram(page_address(page));
+ unsigned long address = page_address(page);
+ memset((void *) (offset + address), 0, PAGE_SIZE - offset);
+ flush_page_to_ram(address);
}
}
}
@@ -175,7 +176,7 @@
if (page->inode) {
remove_page_from_hash_queue(page);
remove_page_from_inode_queue(page);
- free_page(page_address(page));
+ __free_page(page);
return 1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov