X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flinux%2Fswap.h;h=e1d761463243822fef21e619bf0310c0ce36db80;hb=0b09f2d43201472327b80f9978cd768b46353a34;hp=b17cc4830fa670512abdc3987f58fc55e583f0bc;hpb=99091700659f4df965e138b38b4fa26a29b7eade;p=deliverable%2Flinux.git diff --git a/include/linux/swap.h b/include/linux/swap.h index b17cc4830fa6..e1d761463243 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -257,6 +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) { + VM_WARN_ON_ONCE(!workingset_node_pages(node)); node->count--; } @@ -272,6 +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) { + VM_WARN_ON_ONCE(!workingset_node_shadows(node)); node->count -= 1U << RADIX_TREE_COUNT_SHIFT; }