diff options
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/export.h> | 24 | #include <linux/export.h> |
25 | #include <linux/mm_inline.h> | 25 | #include <linux/mm_inline.h> |
26 | #include <linux/buffer_head.h> /* for try_to_release_page() */ | ||
27 | #include <linux/percpu_counter.h> | 26 | #include <linux/percpu_counter.h> |
28 | #include <linux/percpu.h> | 27 | #include <linux/percpu.h> |
29 | #include <linux/cpu.h> | 28 | #include <linux/cpu.h> |
@@ -730,24 +729,6 @@ void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru) | |||
730 | 729 | ||
731 | EXPORT_SYMBOL(____pagevec_lru_add); | 730 | EXPORT_SYMBOL(____pagevec_lru_add); |
732 | 731 | ||
733 | /* | ||
734 | * Try to drop buffers from the pages in a pagevec | ||
735 | */ | ||
736 | void pagevec_strip(struct pagevec *pvec) | ||
737 | { | ||
738 | int i; | ||
739 | |||
740 | for (i = 0; i < pagevec_count(pvec); i++) { | ||
741 | struct page *page = pvec->pages[i]; | ||
742 | |||
743 | if (page_has_private(page) && trylock_page(page)) { | ||
744 | if (page_has_private(page)) | ||
745 | try_to_release_page(page, 0); | ||
746 | unlock_page(page); | ||
747 | } | ||
748 | } | ||
749 | } | ||
750 | |||
751 | /** | 732 | /** |
752 | * pagevec_lookup - gang pagecache lookup | 733 | * pagevec_lookup - gang pagecache lookup |
753 | * @pvec: Where the resulting pages are placed | 734 | * @pvec: Where the resulting pages are placed |