aboutsummaryrefslogtreecommitdiff
path: root/include/linux/genalloc.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-12-10 15:54:45 -0800
committerMoyster <oysterized@gmail.com>2019-05-02 18:25:52 +0200
commit50ca81d617cbdb8af47e2992ad5299ca0991156f (patch)
tree795f63b2884f37a592e0459c55185e11ebc57770 /include/linux/genalloc.h
parentdb5c059244b15491042e27d018c9c1860729e54a (diff)
exit: wait: cleanup the ptrace_reparented() checks
Now that EXIT_DEAD is the terminal state we can kill "int traced" variable and check "state == EXIT_DEAD" instead to cleanup the code. In particular, this way it is clear that the check obviously doesn't need tasklist_lock. Also fix the type of "unsigned long state", "long" was always wrong although this doesn't matter because cmpxchg/xchg uses typeof(*ptr). [akpm@linux-foundation.org: don't make me google the C Operator Precedence table] Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Aaron Tomlin <atomlin@redhat.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Rik van Riel <riel@redhat.com> Cc: Sterling Alexander <stalexan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Change-Id: Ib88f1ca951ef8e1ab2c34cf8f199a5775c9b22b1
Diffstat (limited to 'include/linux/genalloc.h')
0 files changed, 0 insertions, 0 deletions