* [PATCH] swap: ifdef struct vm_area_struct::swap_readahead_info
@ 2019-05-03 19:05 Alexey Dobriyan
2019-05-04 23:33 ` Michal Hocko
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2019-05-03 19:05 UTC (permalink / raw)
To: akpm; +Cc: linux-mm
The field is only used in swap code.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
include/linux/mm_types.h | 2 ++
1 file changed, 2 insertions(+)
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -326,7 +326,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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] swap: ifdef struct vm_area_struct::swap_readahead_info
2019-05-03 19:05 [PATCH] swap: ifdef struct vm_area_struct::swap_readahead_info Alexey Dobriyan
@ 2019-05-04 23:33 ` Michal Hocko
0 siblings, 0 replies; 2+ messages in thread
From: Michal Hocko @ 2019-05-04 23:33 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: akpm, linux-mm
On Fri 03-05-19 22:05:00, Alexey Dobriyan wrote:
> The field is only used in swap code.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
> ---
>
> include/linux/mm_types.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> --- a/include/linux/mm_types.h
> +++ b/include/linux/mm_types.h
> @@ -326,7 +326,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
--
Michal Hocko
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-04 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-03 19:05 [PATCH] swap: ifdef struct vm_area_struct::swap_readahead_info Alexey Dobriyan
2019-05-04 23:33 ` Michal Hocko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).