summaryrefslogtreecommitdiffstats
path: root/include/linux/swap.h
diff options
context:
space:
mode:
authorMatthew Wilcox2017-11-24 20:24:59 +0100
committerMatthew Wilcox2018-10-21 16:46:36 +0200
commita97e7904c0806309fd77103005bb7820c3f1c5e4 (patch)
tree8cfe89076cd837e7efee4e36a7904b5040eb9442 /include/linux/swap.h
parentmm: Convert page-writeback to XArray (diff)
downloadkernel-qcow2-linux-a97e7904c0806309fd77103005bb7820c3f1c5e4.tar.gz
kernel-qcow2-linux-a97e7904c0806309fd77103005bb7820c3f1c5e4.tar.xz
kernel-qcow2-linux-a97e7904c0806309fd77103005bb7820c3f1c5e4.zip
mm: Convert workingset to XArray
We construct an XA_STATE and use it to delete the node with xas_store() rather than adding a special function for this unique use case. Includes a test that simulates this usage for the test suite. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r--include/linux/swap.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 6ea50cf41b4c..112cebcf0402 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -306,15 +306,6 @@ void workingset_update_node(struct xa_node *node);
xas_set_update(xas, workingset_update_node); \
} while (0)
-/* Returns workingset_update_node() if the mapping has shadow entries. */
-#define workingset_lookup_update(mapping) \
-({ \
- radix_tree_update_node_t __helper = workingset_update_node; \
- if (dax_mapping(mapping) || shmem_mapping(mapping)) \
- __helper = NULL; \
- __helper; \
-})
-
/* linux/mm/page_alloc.c */
extern unsigned long totalram_pages;
extern unsigned long totalreserve_pages;