aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memfd.c')
-rw-r--r--mm/memfd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/memfd.c b/mm/memfd.c
index 2647c898990c..650e65a46b9c 100644
--- a/mm/memfd.c
+++ b/mm/memfd.c
@@ -39,7 +39,6 @@ static void memfd_tag_pins(struct xa_state *xas)
39 xas_for_each(xas, page, ULONG_MAX) { 39 xas_for_each(xas, page, ULONG_MAX) {
40 if (xa_is_value(page)) 40 if (xa_is_value(page))
41 continue; 41 continue;
42 page = find_subpage(page, xas->xa_index);
43 if (page_count(page) - page_mapcount(page) > 1) 42 if (page_count(page) - page_mapcount(page) > 1)
44 xas_set_mark(xas, MEMFD_TAG_PINNED); 43 xas_set_mark(xas, MEMFD_TAG_PINNED);
45 44
@@ -89,7 +88,6 @@ static int memfd_wait_for_pins(struct address_space *mapping)
89 bool clear = true; 88 bool clear = true;
90 if (xa_is_value(page)) 89 if (xa_is_value(page))
91 continue; 90 continue;
92 page = find_subpage(page, xas.xa_index);
93 if (page_count(page) - page_mapcount(page) != 1) { 91 if (page_count(page) - page_mapcount(page) != 1) {
94 /* 92 /*
95 * On the last scan, we clean up all those tags 93 * On the last scan, we clean up all those tags