提交 7303f240 编写于 作者: W Wu Fengguang 提交者: Pekka Enberg

slob: use PG_slab for identifying SLOB pages

For the sake of consistency.
Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Andi Kleen <andi@firstfloor.org>
Acked-by: NMatt Mackall <mpm@selenic.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
上级 ce8a7424
...@@ -120,7 +120,6 @@ enum pageflags { ...@@ -120,7 +120,6 @@ enum pageflags {
PG_savepinned = PG_dirty, PG_savepinned = PG_dirty,
/* SLOB */ /* SLOB */
PG_slob_page = PG_active,
PG_slob_free = PG_private, PG_slob_free = PG_private,
/* SLUB */ /* SLUB */
...@@ -203,7 +202,6 @@ PAGEFLAG(SavePinned, savepinned); /* Xen */ ...@@ -203,7 +202,6 @@ PAGEFLAG(SavePinned, savepinned); /* Xen */
PAGEFLAG(Reserved, reserved) __CLEARPAGEFLAG(Reserved, reserved) PAGEFLAG(Reserved, reserved) __CLEARPAGEFLAG(Reserved, reserved)
PAGEFLAG(SwapBacked, swapbacked) __CLEARPAGEFLAG(SwapBacked, swapbacked) PAGEFLAG(SwapBacked, swapbacked) __CLEARPAGEFLAG(SwapBacked, swapbacked)
__PAGEFLAG(SlobPage, slob_page)
__PAGEFLAG(SlobFree, slob_free) __PAGEFLAG(SlobFree, slob_free)
__PAGEFLAG(SlubFrozen, slub_frozen) __PAGEFLAG(SlubFrozen, slub_frozen)
......
...@@ -131,17 +131,17 @@ static LIST_HEAD(free_slob_large); ...@@ -131,17 +131,17 @@ static LIST_HEAD(free_slob_large);
*/ */
static inline int is_slob_page(struct slob_page *sp) 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) 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) 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) static inline struct slob_page *slob_page(const void *addr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册