diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mman.h | 8 | ||||
-rw-r--r-- | include/linux/pagevec.h | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/mman.h b/include/linux/mman.h index dc7048824be81d..bcb201ab7a412e 100644 --- a/include/linux/mman.h +++ b/include/linux/mman.h @@ -162,6 +162,14 @@ calc_vm_flag_bits(unsigned long flags) unsigned long vm_commit_limit(void); +#ifndef arch_memory_deny_write_exec_supported +static inline bool arch_memory_deny_write_exec_supported(void) +{ + return true; +} +#define arch_memory_deny_write_exec_supported arch_memory_deny_write_exec_supported +#endif + /* * Denies creating a writable executable mapping or gaining executable permissions. * diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index fcc06c300a72c3..5d3a0cccc6bf8d 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -11,8 +11,8 @@ #include <linux/types.h> -/* 15 pointers + header align the folio_batch structure to a power of two */ -#define PAGEVEC_SIZE 15 +/* 31 pointers + header align the folio_batch structure to a power of two */ +#define PAGEVEC_SIZE 31 struct folio; |