aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2014-10-09 15:29:50 -0700
committerSimon Shields <keepcalm444@gmail.com>2016-06-12 21:20:15 +1000
commit032a8919a9dfc0043218efa04efccf58509e239f (patch)
tree7f7e1e824db8ddf8ba186cfd6272496d9acc2ec0 /drivers/staging
parent2cff8e16465b5eb7b9f9dce7c7ee47c07b40a92b (diff)
downloadkernel_samsung_smdk4412-032a8919a9dfc0043218efa04efccf58509e239f.tar.gz
kernel_samsung_smdk4412-032a8919a9dfc0043218efa04efccf58509e239f.tar.bz2
kernel_samsung_smdk4412-032a8919a9dfc0043218efa04efccf58509e239f.zip
zsmalloc: change return value unit of zs_get_total_size_bytes
zs_get_total_size_bytes returns a amount of memory zsmalloc consumed with *byte unit* but zsmalloc operates *page unit* rather than byte unit so let's change the API so benefit we could get is that reduce unnecessary overhead (ie, change page unit with byte unit) in zsmalloc. Since return type is pages, "zs_get_total_pages" is better than "zs_get_total_size_bytes". Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Dan Streetman <ddstreet@ieee.org> Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Jerome Marchand <jmarchan@redhat.com> Cc: <juno.choi@lge.com> Cc: <seungho1.park@lge.com> Cc: Luigi Semenzato <semenzato@google.com> Cc: Nitin Gupta <ngupta@vflare.org> Cc: Seth Jennings <sjennings@variantweb.net> Cc: David Horner <ds2horner@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> Conflicts: mm/zsmalloc.c Change-Id: If5697d7b7f8ebaab3b58c1f9f84de747eb909ca3
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions