summaryrefslogtreecommitdiffstats
path: root/crypto/ripemd.h
diff options
context:
space:
mode:
authorMinchan Kim2016-05-21 01:59:39 +0200
committerLinus Torvalds2016-05-21 02:58:30 +0200
commit830e4bc5baa9fda5d45257e9a3dbb3555c6c180e (patch)
tree2a889e6e5c7bc4c7061608b73c7bee11258efcf1 /crypto/ripemd.h
parentzsmalloc: use first_page rather than page (diff)
downloadkernel-qcow2-linux-830e4bc5baa9fda5d45257e9a3dbb3555c6c180e.tar.gz
kernel-qcow2-linux-830e4bc5baa9fda5d45257e9a3dbb3555c6c180e.tar.xz
kernel-qcow2-linux-830e4bc5baa9fda5d45257e9a3dbb3555c6c180e.zip
zsmalloc: clean up many BUG_ON
There are many BUG_ON in zsmalloc.c which is not recommened so change them as alternatives. Normal rule is as follows: 1. avoid BUG_ON if possible. Instead, use VM_BUG_ON or VM_BUG_ON_PAGE 2. use VM_BUG_ON_PAGE if we need to see struct page's fields 3. use those assertion in primitive functions so higher functions can rely on the assertion in the primitive function. 4. Don't use assertion if following instruction can trigger Oops Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/ripemd.h')
0 files changed, 0 insertions, 0 deletions