BUG_ON() Conversion in mm/swap_state.c
Subsystems (3)
PATCH 6/7 BUG_ON() Conversion in mm/swap_state.c
hi,
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away.
Signed-off-by Eric Sesterhenn <[email protected]>
mm/swap_state.c renamed from mm/swap_state.c.orig +1 -2
@@ -146,8 +146,7 @@ int add_to_swap(struct page * page, gfp_swp_entry_t entry;int err; -if (!PageLocked (page)) -BUG (); +BUG_ON (!PageLocked (page));for (;;) { entry =get_swap_page ();
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors