lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 8 May 2009 13:24:29 -0500
From:	Matt Mackall <mpm@...enic.com>
To:	Wu Fengguang <fengguang.wu@...el.com>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>,
	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
	Andi Kleen <andi@...stfloor.org>, linux-mm@...ck.org,
	penberg@...helsinki.fi
Subject: Re: [PATCH 2/7] slob: use PG_slab for identifying SLOB pages

On Thu, May 07, 2009 at 09:21:19AM +0800, Wu Fengguang wrote:
> For the sake of consistency.
> 
> Cc: Matt Mackall <mpm@...enic.com>
> Signed-off-by: Wu Fengguang <fengguang.wu@...el.com>

Acked-by: Matt Mackall <mpm@...enic.com>

Pekka, please take this one directly.

> ---
>  include/linux/page-flags.h |    2 --
>  mm/slob.c                  |    6 +++---
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 
> --- linux.orig/include/linux/page-flags.h
> +++ linux/include/linux/page-flags.h
> @@ -120,7 +120,6 @@ enum pageflags {
>  	PG_savepinned = PG_dirty,
>  
>  	/* SLOB */
> -	PG_slob_page = PG_active,
>  	PG_slob_free = PG_private,
>  
>  	/* SLUB */
> @@ -203,7 +202,6 @@ PAGEFLAG(SavePinned, savepinned);			/* X
>  PAGEFLAG(Reserved, reserved) __CLEARPAGEFLAG(Reserved, reserved)
>  PAGEFLAG(SwapBacked, swapbacked) __CLEARPAGEFLAG(SwapBacked, swapbacked)
>  
> -__PAGEFLAG(SlobPage, slob_page)
>  __PAGEFLAG(SlobFree, slob_free)
>  
>  __PAGEFLAG(SlubFrozen, slub_frozen)
> --- linux.orig/mm/slob.c
> +++ linux/mm/slob.c
> @@ -132,17 +132,17 @@ static LIST_HEAD(free_slob_large);
>   */
>  static inline int is_slob_page(struct slob_page *sp)
>  {
> -	return PageSlobPage((struct page *)sp);
> +	return PageSlab((struct page *)sp);
>  }
>  
>  static inline void set_slob_page(struct slob_page *sp)
>  {
> -	__SetPageSlobPage((struct page *)sp);
> +	__SetPageSlab((struct page *)sp);
>  }
>  
>  static inline void clear_slob_page(struct slob_page *sp)
>  {
> -	__ClearPageSlobPage((struct page *)sp);
> +	__ClearPageSlab((struct page *)sp);
>  }
>  
>  static inline struct slob_page *slob_page(const void *addr)
> 
> -- 

-- 
Mathematics is the supreme nostalgia of our time.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ