patch-2.3.99-pre2 linux/mm/filemap.c
Next file: linux/mm/memory.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri Mar 17 13:26:03 2000
- Orig file:
v2.3.99-pre1/linux/mm/filemap.c
- Orig date:
Tue Mar 14 19:10:40 2000
diff -u --recursive --new-file v2.3.99-pre1/linux/mm/filemap.c linux/mm/filemap.c
@@ -108,14 +108,15 @@
curr = curr->next;
/* We cannot invalidate a locked page */
- if (PageLocked(page))
+ if (TryLockPage(page))
continue;
lru_cache_del(page);
-
remove_page_from_inode_queue(page);
remove_page_from_hash_queue(page);
page->mapping = NULL;
+ UnlockPage(page);
+
page_cache_release(page);
}
spin_unlock(&pagecache_lock);
@@ -1413,7 +1414,7 @@
struct page *new_page = page_cache_alloc();
if (new_page) {
- copy_highpage(new_page, old_page);
+ copy_user_highpage(new_page, old_page, address);
flush_page_to_ram(new_page);
} else
new_page = NOPAGE_OOM;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)