Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb8f2eec authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Linus Torvalds
Browse files

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: default avatarSergey 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 15de36a4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ enum zram_pageflags {
/*-- Data structures */
/*-- Data structures */


/* Allocated for each disk page */
/* Allocated for each disk page */
struct table {
struct zram_table_entry {
	unsigned long handle;
	unsigned long handle;
	u16 size;	/* object size (excluding header) */
	u16 size;	/* object size (excluding header) */
	u8 flags;
	u8 flags;
@@ -82,7 +82,7 @@ struct zram_stats {


struct zram_meta {
struct zram_meta {
	rwlock_t tb_lock;	/* protect table */
	rwlock_t tb_lock;	/* protect table */
	struct table *table;
	struct zram_table_entry *table;
	struct zs_pool *mem_pool;
	struct zs_pool *mem_pool;
};
};