diff options
| author | Minchan Kim <minchan@kernel.org> | 2016-05-20 16:59:39 -0700 |
|---|---|---|
| committer | Vinayak Menon <vinmenon@codeaurora.org> | 2017-02-21 12:39:33 +0530 |
| commit | f78fba36d9bac48e007dee8c572e071fe006a4f0 (patch) | |
| tree | b0539076a8c57d4bfad32003cc818cccc4254986 /tools/perf/scripts/python | |
| parent | 2eba93b730209a6508f45068388da6fa18ceb09b (diff) | |
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>
Git-commit: 830e4bc5baa9fda5d45257e9a3dbb3555c6c180e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: Ia4b15fb09ad5398165781861952d075665c8b8e9
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
