Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56515
b: refs/heads/master
c: 5577bd8
h: refs/heads/master
i:
  56513: fb8f70d
  56511: 6169015
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed May 17, 2007
1 parent 01de140 commit a8ed226
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eefaca9c3246f3daf56e7ed02987f79abcee7087
refs/heads/master: 5577bd8a85c8b7643a241789b14fafa9c8a6c7db
28 changes: 14 additions & 14 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,42 +99,42 @@
* the fast path and disables lockless freelists.
*/

#define FROZEN (1 << PG_active)

#ifdef CONFIG_SLUB_DEBUG
#define SLABDEBUG (1 << PG_error)
#else
#define SLABDEBUG 0
#endif

static inline int SlabFrozen(struct page *page)
{
return PageActive(page);
return page->flags & FROZEN;
}

static inline void SetSlabFrozen(struct page *page)
{
SetPageActive(page);
page->flags |= FROZEN;
}

static inline void ClearSlabFrozen(struct page *page)
{
ClearPageActive(page);
page->flags &= ~FROZEN;
}

static inline int SlabDebug(struct page *page)
{
#ifdef CONFIG_SLUB_DEBUG
return PageError(page);
#else
return 0;
#endif
return page->flags & SLABDEBUG;
}

static inline void SetSlabDebug(struct page *page)
{
#ifdef CONFIG_SLUB_DEBUG
SetPageError(page);
#endif
page->flags |= SLABDEBUG;
}

static inline void ClearSlabDebug(struct page *page)
{
#ifdef CONFIG_SLUB_DEBUG
ClearPageError(page);
#endif
page->flags &= ~SLABDEBUG;
}

/*
Expand Down

0 comments on commit a8ed226

Please sign in to comment.