UPSTREAM: zram: rename struct `table' to `zram_table_entry'

(cherry-pick from commit cb8f2eec3c5c87e31219c5e58625b8e890004e48)

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

Bug: 25951511

Change-Id: I862e174bb6d5241ecfd950bc992f41da83dfaff5
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>
This commit is contained in:
Sergey Senozhatsky 2014-08-06 16:08:25 -07:00 committed by Srinivasarao P
parent e8eb4ffa79
commit 60efa4686e
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ enum zram_pageflags {
/*-- Data structures */
/* Allocated for each disk page */
struct table {
struct zram_table_entry {
unsigned long handle;
u16 size; /* object size (excluding header) */
u8 flags;
@ -82,7 +82,7 @@ struct zram_stats {
struct zram_meta {
rwlock_t tb_lock; /* protect table */
struct table *table;
struct zram_table_entry *table;
struct zs_pool *mem_pool;
};