]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mm: Convert is_page_cache_freeable to XArray
authorMatthew Wilcox <willy@infradead.org>
Sun, 10 Jun 2018 11:34:39 +0000 (07:34 -0400)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:38 +0000 (10:46 -0400)
This is just a variable rename and comment change.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
mm/vmscan.c

index 80f731cf974e0fc99dfb1f3f285867b6b242090e..f9cc86e918121f769573d56369cd51b616e5f120 100644 (file)
@@ -742,12 +742,12 @@ static inline int is_page_cache_freeable(struct page *page)
 {
        /*
         * A freeable page cache page is referenced only by the caller
-        * that isolated the page, the page cache radix tree and
-        * optional buffer heads at page->private.
+        * that isolated the page, the page cache and optional buffer
+        * heads at page->private.
         */
-       int radix_pins = PageTransHuge(page) && PageSwapCache(page) ?
+       int page_cache_pins = PageTransHuge(page) && PageSwapCache(page) ?
                HPAGE_PMD_NR : 1;
-       return page_count(page) - page_has_private(page) == 1 + radix_pins;
+       return page_count(page) - page_has_private(page) == 1 + page_cache_pins;
 }
 
 static int may_write_to_inode(struct inode *inode, struct scan_control *sc)