]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
include/linux/mm_types.h: ifdef struct vm_area_struct::swap_readahead_info
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 12 Jul 2019 03:54:43 +0000 (20:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Jul 2019 18:05:42 +0000 (11:05 -0700)
The field is only used in swap code.

Link: http://lkml.kernel.org/r/20190503190500.GA30589@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm_types.h

index 8ec38b11b361e5e3d56d3725893093db8e6ae309..1d1093474c1a99e01c43f569f6f8ea42c2554dda 100644 (file)
@@ -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