projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using BUG_ON() as an assert() is _never_ acceptable
[deliverable/linux.git]
/
include
/
linux
/
swap.h
diff --git
a/include/linux/swap.h
b/include/linux/swap.h
index 4a529c984a3fa5e67e3e1f5010c8b17666dab480..e1d761463243822fef21e619bf0310c0ce36db80 100644
(file)
--- a/
include/linux/swap.h
+++ b/
include/linux/swap.h
@@
-257,7
+257,7
@@
static inline void workingset_node_pages_inc(struct radix_tree_node *node)
static inline void workingset_node_pages_dec(struct radix_tree_node *node)
{
static inline void workingset_node_pages_dec(struct radix_tree_node *node)
{
- VM_
BUG_ON
(!workingset_node_pages(node));
+ VM_
WARN_ON_ONCE
(!workingset_node_pages(node));
node->count--;
}
node->count--;
}
@@
-273,7
+273,7
@@
static inline void workingset_node_shadows_inc(struct radix_tree_node *node)
static inline void workingset_node_shadows_dec(struct radix_tree_node *node)
{
static inline void workingset_node_shadows_dec(struct radix_tree_node *node)
{
- VM_
BUG_ON
(!workingset_node_shadows(node));
+ VM_
WARN_ON_ONCE
(!workingset_node_shadows(node));
node->count -= 1U << RADIX_TREE_COUNT_SHIFT;
}
node->count -= 1U << RADIX_TREE_COUNT_SHIFT;
}
This page took
0.024664 seconds
and
5
git commands to generate.