linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: clean up page_is_poisoned in linux/mm.h
@ 2018-06-03  8:22 kpark3469
  2018-06-04  6:46 ` Michal Hocko
  0 siblings, 1 reply; 2+ messages in thread
From: kpark3469 @ 2018-06-03  8:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, dan.j.williams, mhocko, vinmenon, jack, Sahara

From: Sahara <keun-o.park@darkmatter.ae>

When bd33ef36("mm: enable page poisoning early at boot") got rid of
the PAGE_EXT_DEBUG_POISON, page_is_poisoned in the header left
behind. This patch cleans up the leftovers under the table.

Signed-off-by: Sahara <keun-o.park@darkmatter.ae>
---
 include/linux/mm.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index c6fa9a2..a53b0ad 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2522,12 +2522,10 @@ extern int apply_to_page_range(struct mm_struct *mm, unsigned long address,
 #ifdef CONFIG_PAGE_POISONING
 extern bool page_poisoning_enabled(void);
 extern void kernel_poison_pages(struct page *page, int numpages, int enable);
-extern bool page_is_poisoned(struct page *page);
 #else
 static inline bool page_poisoning_enabled(void) { return false; }
 static inline void kernel_poison_pages(struct page *page, int numpages,
 					int enable) { }
-static inline bool page_is_poisoned(struct page *page) { return false; }
 #endif
 
 #ifdef CONFIG_DEBUG_PAGEALLOC
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm: clean up page_is_poisoned in linux/mm.h
  2018-06-03  8:22 [PATCH] mm: clean up page_is_poisoned in linux/mm.h kpark3469
@ 2018-06-04  6:46 ` Michal Hocko
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Hocko @ 2018-06-04  6:46 UTC (permalink / raw)
  To: kpark3469; +Cc: linux-kernel, akpm, dan.j.williams, vinmenon, jack, Sahara

On Sun 03-06-18 12:22:18, kpark3469@gmail.com wrote:
> From: Sahara <keun-o.park@darkmatter.ae>
> 
> When bd33ef36("mm: enable page poisoning early at boot") got rid of
> the PAGE_EXT_DEBUG_POISON, page_is_poisoned in the header left
> behind. This patch cleans up the leftovers under the table.

Acked-by: Michal Hocko <mhocko@suse.com>

Btw. we tend to use abbrev = 12 for sha1 references.

> Signed-off-by: Sahara <keun-o.park@darkmatter.ae>
> ---
>  include/linux/mm.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/include/linux/mm.h b/include/linux/mm.h
> index c6fa9a2..a53b0ad 100644
> --- a/include/linux/mm.h
> +++ b/include/linux/mm.h
> @@ -2522,12 +2522,10 @@ extern int apply_to_page_range(struct mm_struct *mm, unsigned long address,
>  #ifdef CONFIG_PAGE_POISONING
>  extern bool page_poisoning_enabled(void);
>  extern void kernel_poison_pages(struct page *page, int numpages, int enable);
> -extern bool page_is_poisoned(struct page *page);
>  #else
>  static inline bool page_poisoning_enabled(void) { return false; }
>  static inline void kernel_poison_pages(struct page *page, int numpages,
>  					int enable) { }
> -static inline bool page_is_poisoned(struct page *page) { return false; }
>  #endif
>  
>  #ifdef CONFIG_DEBUG_PAGEALLOC
> -- 
> 2.7.4

-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-04  6:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-03  8:22 [PATCH] mm: clean up page_is_poisoned in linux/mm.h kpark3469
2018-06-04  6:46 ` 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).