summaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorDan Streetman2015-11-07 01:29:18 +0100
committerLinus Torvalds2015-11-07 02:50:42 +0100
commit69e18f4dbedfbf208452e9da9979c92da30d2442 (patch)
treea2052fea74be8c0180a6697b8d61c70920ed6095 /mm/zsmalloc.c
parentzswap: use charp for zswap param strings (diff)
downloadkernel-qcow2-linux-69e18f4dbedfbf208452e9da9979c92da30d2442.tar.gz
kernel-qcow2-linux-69e18f4dbedfbf208452e9da9979c92da30d2442.tar.xz
kernel-qcow2-linux-69e18f4dbedfbf208452e9da9979c92da30d2442.zip
zpool: remove redundant zpool->type string, const-ify zpool_get_type
Make the return type of zpool_get_type const; the string belongs to the zpool driver and should not be modified. Remove the redundant type field in the struct zpool; it is private to zpool.c and isn't needed since ->driver->type can be used directly. Add comments indicating strings must be null-terminated. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Seth Jennings <sjennings@variantweb.net> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zsmalloc.c')
0 files changed, 0 insertions, 0 deletions