zswap: use charp for zswap param strings
authorDan Streetman <ddstreet@ieee.org>
Sat, 7 Nov 2015 00:29:15 +0000 (16:29 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commitc99b42c3529e5e1bff00f68250dc869f7de3bd5f
treee3d1b04e23d97c00428216a1796695be0737ecb9
parent3d9c637f4ae74b45d95bb6cbd793fbffad0a709c
zswap: use charp for zswap param strings

Instead of using a fixed-length string for the zswap params, use charp.
This simplifies the code and uses less memory, as most zswap param strings
will be less than the current maximum length.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Seth Jennings <sjennings@variantweb.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zswap.c