Skip to content

Commit

Permalink
HWPOISON: Turn addr_valid from bitfield into char
Browse files Browse the repository at this point in the history
The addr_valid flag is the only flag in "to_kill" and it's slightly more
efficient to have it as char instead of a bitfield.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
  • Loading branch information
Andi Kleen committed Oct 8, 2010
1 parent 898e70d commit 9033ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ struct to_kill {
struct list_head nd;
struct task_struct *tsk;
unsigned long addr;
unsigned addr_valid:1;
char addr_valid;
};

/*
Expand Down

0 comments on commit 9033ae1

Please sign in to comment.