Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
include
/
linux
/
swap.h
diff --git
a/kernel/include/linux/swap.h
b/kernel/include/linux/swap.h
index
da646f2
..
19e0380
100644
(file)
--- a/
kernel/include/linux/swap.h
+++ b/
kernel/include/linux/swap.h
@@
-268,6
+268,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_WARN_ON_ONCE(!workingset_node_pages(node));
node->count--;
}
node->count--;
}
@@
-283,6
+284,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_WARN_ON_ONCE(!workingset_node_shadows(node));
node->count -= 1U << RADIX_TREE_COUNT_SHIFT;
}
node->count -= 1U << RADIX_TREE_COUNT_SHIFT;
}