summaryrefslogtreecommitdiff
path: root/lib/zstd/zstd_common.c
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2017-07-06 15:37:12 -0700
committerPeter Kalauskas <peskal@google.com>2018-08-23 12:00:19 -0700
commitc30307c479f23b3e47fd8a4c692bcaff7bdee77b (patch)
tree34a73a07a9015fb84c0c18af8499e0164fceb52e /lib/zstd/zstd_common.c
parent69aa01aaee7c8207c5bc10c1360f0398eb412b85 (diff)
UPSTREAM: zram: count same page write as page_stored
Regardless of whether it is same page or not, it's surely write and stored to zram so we should increase pages_stored stat. Otherwise, user can see zero value via mm_stats although he writes a lot of pages to zram. Link: http://lkml.kernel.org/r/1494834068-27004-1-git-send-email-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> (cherry picked from commit 51f9f82c855d65ef14c2af10e0d2c86ec332a182) Signed-off-by: Peter Kalauskas <peskal@google.com> Bug: 112488418 Change-Id: I006d80df413a0fe0fd7dd58e535c6a2c03ab2c9d
Diffstat (limited to 'lib/zstd/zstd_common.c')
0 files changed, 0 insertions, 0 deletions