commit | d61ba58953fcf708c850bfd90b2858f2ddfbc34c | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <[email protected]> | Fri Nov 06 16:32:34 2015 -0800 |
committer | Linus Torvalds <[email protected]> | Fri Nov 06 17:50:42 2015 -0800 |
tree | 2f40955b30bd9147934ef5b1eb8bd0498cfb41c8 | |
parent | 5fa534c987784c4811757a34c425aff3ce3b5037 [diff] |
coredump: change zap_threads() and zap_process() to use for_each_thread() Change zap_threads() paths to use for_each_thread() rather than while_each_thread(). While at it, change zap_threads() to avoid the nested if's to make the code more readable and lessen the indentation. Signed-off-by: Oleg Nesterov <[email protected]> Cc: David Rientjes <[email protected]> Cc: Kyle Walker <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Stanislav Kozina <[email protected]> Cc: Tetsuo Handa <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>