Commit 023b409f authored by Minchan Kim's avatar Minchan Kim Committed by Linus Torvalds
Browse files

zram: use size_t instead of u16

Some architectures (eg, hexagon and PowerPC) could use PAGE_SHIFT of 16
or more.  In these cases u16 is not sufficiently large to represent a
compressed page's size so use size_t.
Signed-off-by: default avatarMinchan Kim <>
Reported-by: default avatarWeijie Yang <>
Acked-by: default avatarSergey Senozhatsky <>
Cc: Jerome Marchand <>
Cc: Nitin Gupta <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a830eff7
......@@ -337,7 +337,7 @@ static int zram_decompress_page(struct zram *zram, char *mem, u32 index)
unsigned char *cmem;
struct zram_meta *meta = zram->meta;
unsigned long handle;
u16 size;
size_t size;
handle = meta->table[index].handle;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment