projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46a350e
)
BUG_ON() Conversion in mm/swap_state.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Fri, 31 Mar 2006 23:25:12 +0000
(
01:25
+0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 31 Mar 2006 23:25:12 +0000
(
01:25
+0200)
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
mm/swap_state.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/swap_state.c
b/mm/swap_state.c
index d7af296833fcbc1b3dccfbde33db51fb2fd3934a..e0e1583f32c26cc2579554a4abcc797a9a671553 100644
(file)
--- a/
mm/swap_state.c
+++ b/
mm/swap_state.c
@@
-148,8
+148,7
@@
int add_to_swap(struct page * page, gfp_t gfp_mask)
swp_entry_t entry;
int err;
- if (!PageLocked(page))
- BUG();
+ BUG_ON(!PageLocked(page));
for (;;) {
entry = get_swap_page();