diff options
Diffstat (limited to 'kernel/include/linux/swap.h')
-rw-r--r-- | kernel/include/linux/swap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/include/linux/swap.h b/kernel/include/linux/swap.h index da646f2eb..19e038054 100644 --- 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) { + VM_WARN_ON_ONCE(!workingset_node_pages(node)); 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) { + VM_WARN_ON_ONCE(!workingset_node_shadows(node)); node->count -= 1U << RADIX_TREE_COUNT_SHIFT; } |