From: turner@capitol.com (Simmy Turner) Subject: linux/mm/memory.c Date: Fri, 24 Jan 1992 06:33:44 GMT
While trying to add swapping to files, I ran into the following problem that
I don't understand. In the function copy_page_tables(), there is a call to
read_swap_page(). What is that called needed for?
Here is an excerpt from the code.
memory.c: line 149
if (!(1 & this_page)) {
if (!(new_page = get_free_page()))
return -1;
>>> read_swap_page(this_page>>1, (char *) new_page);
*to_page_table = this_page;
*from_page_table = new_page | (PAGE_DIRTY | 7);
continue;
}