diff options
author | Roman Gushchin <guro@fb.com> | 2020-10-01 22:07:49 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-02 18:13:41 +0200 |
commit | be458311cdbb5d94820ffc4e40c5906085c0a507 (patch) | |
tree | ced755d5f88226d5aea7a14a38864b23656b94a7 /lib/random32.c | |
parent | pipe: remove pipe_wait() and fix wakeup race with splice (diff) | |
download | linux-be458311cdbb5d94820ffc4e40c5906085c0a507.tar.xz linux-be458311cdbb5d94820ffc4e40c5906085c0a507.zip |
mm: memcg/slab: fix slab statistics in !SMP configuration
Since commit ea426c2a7de8 ("mm: memcg: prepare for byte-sized vmstat
items") the write side of slab counters accepts a value in bytes and
converts it to pages. It happens in __mod_node_page_state().
However a non-SMP version of __mod_node_page_state() doesn't perform
this conversion. It leads to incorrect (unrealistically high) slab
counters values. Fix this by adding a similar conversion to the non-SMP
version of __mod_node_page_state().
Signed-off-by: Roman Gushchin <guro@fb.com>
Reported-and-tested-by: Bastian Bittorf <bb@npl.de>
Fixes: ea426c2a7de8 ("mm: memcg: prepare for byte-sized vmstat items")
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/random32.c')
0 files changed, 0 insertions, 0 deletions