aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2014-10-09 15:29:50 -0700
committerLinus Torvalds <[email protected]>2014-10-09 22:26:02 -0400
commit722cdc17232f0f684011407f7cf3c40d39457971 (patch)
tree98c3cdca13c1edc8017bee617f3345e337ae3aea /net/lapb/lapb_subr.c
parent13de8933c96b4557f667c337676f05274e017f83 (diff)
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 <[email protected]> Reviewed-by: Dan Streetman <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Jerome Marchand <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: Luigi Semenzato <[email protected]> Cc: Nitin Gupta <[email protected]> Cc: Seth Jennings <[email protected]> Cc: David Horner <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions