]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/truncate.c
Page allocator: clean up pcp draining functions
[linux-2.6-omap-h63xx.git] / mm / truncate.c
index cadc15653ddeeaa311c80f794b6a564ae2f36fc8..3855492f1c3a4fe654384cbb44d158611eec68ac 100644 (file)
@@ -21,7 +21,7 @@
 
 
 /**
- * do_invalidatepage - invalidate part of all of a page
+ * do_invalidatepage - invalidate part or all of a page
  * @page: the page which is affected
  * @offset: the index of the truncation point
  *
@@ -48,7 +48,7 @@ void do_invalidatepage(struct page *page, unsigned long offset)
 
 static inline void truncate_partial_page(struct page *page, unsigned partial)
 {
-       zero_user_page(page, partial, PAGE_CACHE_SIZE - partial, KM_USER0);
+       zero_user_segment(page, partial, PAGE_CACHE_SIZE);
        if (PagePrivate(page))
                do_invalidatepage(page, partial);
 }