summaryrefslogtreecommitdiffstats
path: root/fs/proc/meminfo.c
diff options
context:
space:
mode:
authorXishi Qiu <qiuxishi@huawei.com>2013-02-22 16:34:00 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-23 17:50:15 -0800
commitfa8dd8a92dccc1b29cefd7f51334285d6ed35281 (patch)
tree3fcb74a3164d9f6f9cfed8c81b526916cf2bbdfb /fs/proc/meminfo.c
parent0ebff32c3637e0ed551c017eb9599ac108ab36aa (diff)
downloadop-kernel-dev-fa8dd8a92dccc1b29cefd7f51334285d6ed35281.zip
op-kernel-dev-fa8dd8a92dccc1b29cefd7f51334285d6ed35281.tar.gz
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 <qiuxishi@huawei.com> Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/meminfo.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud