projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/swap: don't BUG_ON() due to uninitialized swap slot cache
[linux-2.6-microblaze.git]
/
mm
/
swap_slots.c
diff --git
a/mm/swap_slots.c
b/mm/swap_slots.c
index
9b5bc86
..
7ebb238
100644
(file)
--- a/
mm/swap_slots.c
+++ b/
mm/swap_slots.c
@@
-267,7
+267,7
@@
int free_swap_slot(swp_entry_t entry)
{
struct swap_slots_cache *cache;
-
BUG_ON
(!swap_slot_cache_initialized);
+
WARN_ON_ONCE
(!swap_slot_cache_initialized);
cache = &get_cpu_var(swp_slots);
if (use_swap_slot_cache && cache->slots_ret) {