From: Alexey Dobriyan Date: Fri, 12 Jul 2019 03:54:43 +0000 (-0700) Subject: include/linux/mm_types.h: ifdef struct vm_area_struct::swap_readahead_info X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=219f8a2e25f0abbe222b170a0de2fd38c22d43ad;p=openwrt%2Fstaging%2Fblogic.git include/linux/mm_types.h: ifdef struct vm_area_struct::swap_readahead_info The field is only used in swap code. Link: http://lkml.kernel.org/r/20190503190500.GA30589@avx2 Signed-off-by: Alexey Dobriyan Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 8ec38b11b361..1d1093474c1a 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -329,7 +329,9 @@ struct vm_area_struct { struct file * vm_file; /* File we map to (can be NULL). */ void * vm_private_data; /* was vm_pte (shared mem) */ +#ifdef CONFIG_SWAP atomic_long_t swap_readahead_info; +#endif #ifndef CONFIG_MMU struct vm_region *vm_region; /* NOMMU mapping region */ #endif