Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

zram: rename struct `table' to `zram_table_entry'

Andrew Morton has recently noted that `struct table' actually represents
table entry and, thus, should be renamed. Rename to `zram_table_entry'.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Weijie Yang <weijie.yang@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Sergey Senozhatsky and committed by
Linus Torvalds
cb8f2eec 15de36a4

+2 -2
+2 -2
drivers/block/zram/zram_drv.h
··· 62 62 /*-- Data structures */ 63 63 64 64 /* Allocated for each disk page */ 65 - struct table { 65 + struct zram_table_entry { 66 66 unsigned long handle; 67 67 u16 size; /* object size (excluding header) */ 68 68 u8 flags; ··· 82 82 83 83 struct zram_meta { 84 84 rwlock_t tb_lock; /* protect table */ 85 - struct table *table; 85 + struct zram_table_entry *table; 86 86 struct zs_pool *mem_pool; 87 87 }; 88 88