summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorMatthew Wilcox2018-06-10 13:34:39 +0200
committerMatthew Wilcox2018-10-21 16:46:38 +0200
commit67891ffff2f5cf10e89e348207f687a05c8bd2d6 (patch)
tree6c873980091050cc28b326c2429143028090ecb9 /mm/vmscan.c
parentmm: Convert khugepaged_scan_shmem to XArray (diff)
downloadkernel-qcow2-linux-67891ffff2f5cf10e89e348207f687a05c8bd2d6.tar.gz
kernel-qcow2-linux-67891ffff2f5cf10e89e348207f687a05c8bd2d6.tar.xz
kernel-qcow2-linux-67891ffff2f5cf10e89e348207f687a05c8bd2d6.zip
mm: Convert is_page_cache_freeable to XArray
This is just a variable rename and comment change. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 80f731cf974e..f9cc86e91812 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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)