lkml.org 
[lkml]   [2009]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@selenic.com>
> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>

Acked-by: Matt Mackall <mpm@selenic.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.


\
 
 \ /
  Last update: 2009-05-08 20:29    [W:0.086 / U:0.904 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site