hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/linux/frontswap.h
....@@ -7,6 +7,13 @@
77 #include <linux/bitops.h>
88 #include <linux/jump_label.h>
99
10
+/*
11
+ * Return code to denote that requested number of
12
+ * frontswap pages are unused(moved to page cache).
13
+ * Used in shmem_unuse and try_to_unuse.
14
+ */
15
+#define FRONTSWAP_PAGES_UNUSED 2
16
+
1017 struct frontswap_ops {
1118 void (*init)(unsigned); /* this swap type was just swapon'ed */
1219 int (*store)(unsigned, pgoff_t, struct page *); /* store a page */