mm/memory_hotplug: avoid calling zone_intersects() for ZONE_NORMAL
[linux-2.6-microblaze.git] / mm / filemap.c
index ad8c39d..bd788bb 100644 (file)
@@ -1054,6 +1054,12 @@ void __init pagecache_init(void)
                init_waitqueue_head(&folio_wait_table[i]);
 
        page_writeback_init();
+
+       /*
+        * tmpfs uses the ZERO_PAGE for reading holes: it is up-to-date,
+        * and splice's page_cache_pipe_buf_confirm() needs to see that.
+        */
+       SetPageUptodate(ZERO_PAGE(0));
 }
 
 /*
@@ -2229,8 +2235,9 @@ out:
  * @nr_pages:  The maximum number of pages
  * @pages:     Where the resulting pages are placed
  *
- * find_get_pages_contig() works exactly like find_get_pages(), except
- * that the returned number of pages are guaranteed to be contiguous.
+ * find_get_pages_contig() works exactly like find_get_pages_range(),
+ * except that the returned number of pages are guaranteed to be
+ * contiguous.
  *
  * Return: the number of pages which were found.
  */
@@ -2290,9 +2297,9 @@ EXPORT_SYMBOL(find_get_pages_contig);
  * @nr_pages:  the maximum number of pages
  * @pages:     where the resulting pages are placed
  *
- * Like find_get_pages(), except we only return head pages which are tagged
- * with @tag.  @index is updated to the index immediately after the last
- * page we return, ready for the next iteration.
+ * Like find_get_pages_range(), except we only return head pages which are
+ * tagged with @tag.  @index is updated to the index immediately after the
+ * last page we return, ready for the next iteration.
  *
  * Return: the number of pages which were found.
  */