Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308879
b: refs/heads/master
c: 51300ce
h: refs/heads/master
i:
  308877: cdee434
  308875: 70a7a78
  308871: fad2540
  308863: 60a4fa2
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 29, 2012
1 parent 0ccd9f2 commit 805c72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: acc50c110cf6f1a8bd1af410b2c7bc29ca624678
refs/heads/master: 51300cef41c9355a7d428fe0714888d3c72a6f2f
7 changes: 3 additions & 4 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5938,7 +5938,7 @@ bool is_free_buddy_page(struct page *page)
}
#endif

static struct trace_print_flags pageflag_names[] = {
static const struct trace_print_flags pageflag_names[] = {
{1UL << PG_locked, "locked" },
{1UL << PG_error, "error" },
{1UL << PG_referenced, "referenced" },
Expand Down Expand Up @@ -5976,7 +5976,6 @@ static struct trace_print_flags pageflag_names[] = {
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
{1UL << PG_compound_lock, "compound_lock" },
#endif
{-1UL, NULL },
};

static void dump_page_flags(unsigned long flags)
Expand All @@ -5985,14 +5984,14 @@ static void dump_page_flags(unsigned long flags)
unsigned long mask;
int i;

BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) - 1 != __NR_PAGEFLAGS);
BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS);

printk(KERN_ALERT "page flags: %#lx(", flags);

/* remove zone id */
flags &= (1UL << NR_PAGEFLAGS) - 1;

for (i = 0; pageflag_names[i].name && flags; i++) {
for (i = 0; i < ARRAY_SIZE(pageflag_names) && flags; i++) {

mask = pageflag_names[i].mask;
if ((flags & mask) != mask)
Expand Down

0 comments on commit 805c72a

Please sign in to comment.