2001-12-21 21:44:42

by Momchil Velikov

[permalink] [raw]
Subject: [PATCH] Minor touch to filemap.c

As Linus pointed out, we've just checked that page is NULL.

--- 1.5/mm/filemap.c Fri Dec 21 11:54:14 2001
+++ edited/mm/filemap.c Fri Dec 21 23:26:07 2001
@@ -941,7 +941,6 @@
spin_unlock(&pagecache_lock);
if (!page) {
struct page *newpage = alloc_page(gfp_mask);
- page = NULL;
if (newpage) {
spin_lock(&pagecache_lock);
page = __find_lock_page_helper(mapping, index, *hash);