zram: rename struct `table' to `zram_table_entry'
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Wed, 6 Aug 2014 23:08:25 +0000 (16:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:22 +0000 (18:01 -0700)
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>
drivers/block/zram/zram_drv.h

index 7f21c145e317f49e785eafeb1aea78097109e158..8909f86caf0d5f0d68bc1a039ad3a4e1a152092d 100644 (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;
 };