hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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 */