From: Xishi Qiu Date: Sat, 23 Feb 2013 00:34:00 +0000 (-0800) Subject: memory-failure: do code refactor of soft_offline_page() X-Git-Tag: v3.9-rc1~99^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8dd8a92dccc1b29cefd7f51334285d6ed35281;p=pandora-kernel.git memory-failure: do code refactor of soft_offline_page() There are too many return points randomly intermingled with some "goto done" return points. So adjust the function structure, one for the success path, the other for the failure path. Use atomic_long_inc instead of atomic_long_add. Signed-off-by: Xishi Qiu Signed-off-by: Jiang Liu Suggested-by: Andrew Morton Cc: Borislav Petkov Cc: Wanpeng Li Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed