hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/pagevec.h
....@@ -9,6 +9,8 @@
99 #ifndef _LINUX_PAGEVEC_H
1010 #define _LINUX_PAGEVEC_H
1111
12
+#include <linux/xarray.h>
13
+
1214 /* 15 pointers + header align the pagevec structure to a power of two */
1315 #define PAGEVEC_SIZE 15
1416
....@@ -40,12 +42,12 @@
4042
4143 unsigned pagevec_lookup_range_tag(struct pagevec *pvec,
4244 struct address_space *mapping, pgoff_t *index, pgoff_t end,
43
- int tag);
45
+ xa_mark_t tag);
4446 unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec,
4547 struct address_space *mapping, pgoff_t *index, pgoff_t end,
46
- int tag, unsigned max_pages);
48
+ xa_mark_t tag, unsigned max_pages);
4749 static inline unsigned pagevec_lookup_tag(struct pagevec *pvec,
48
- struct address_space *mapping, pgoff_t *index, int tag)
50
+ struct address_space *mapping, pgoff_t *index, xa_mark_t tag)
4951 {
5052 return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag);
5153 }