]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
HWPOISON: Turn addr_valid from bitfield into char
authorAndi Kleen <ak@linux.intel.com>
Mon, 27 Sep 2010 21:36:05 +0000 (23:36 +0200)
committerAndi Kleen <ak@linux.intel.com>
Fri, 8 Oct 2010 07:33:01 +0000 (09:33 +0200)
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>
mm/memory-failure.c

index 77b3e79528f0a5db87045942964ca5178ffc396f..88653c93e4ce0c250c33555c4add9f0804f26a3e 100644 (file)
@@ -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;
 };
 
 /*