mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-23 22:46:05 +00:00
kvm tools: Rename 'struct qcow_table' to 'struct qcow_l1_table'
This patch renames the ambiguous 'struct qcow_table' to 'struct qcow_l1_table' in preparation for introducing 'struct qcow_refcount_table'. Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
7c88c87ee7
commit
473aaa2d4c
+4
-4
@@ -234,7 +234,7 @@ error:
|
||||
static ssize_t qcow_read_cluster(struct qcow *q, u64 offset, void *dst, u32 dst_len)
|
||||
{
|
||||
struct qcow_header *header = q->header;
|
||||
struct qcow_table *table = &q->table;
|
||||
struct qcow_l1_table *table = &q->table;
|
||||
struct qcow_l2_table *l2_table;
|
||||
u64 l2_table_offset;
|
||||
u64 l2_table_size;
|
||||
@@ -393,7 +393,7 @@ static u64 qcow_write_l2_table(struct qcow *q, u64 *table)
|
||||
static ssize_t qcow_write_cluster(struct qcow *q, u64 offset, void *buf, u32 src_len)
|
||||
{
|
||||
struct qcow_header *header = q->header;
|
||||
struct qcow_table *table = &q->table;
|
||||
struct qcow_l1_table *table = &q->table;
|
||||
struct qcow_l2_table *l2t;
|
||||
u64 clust_start;
|
||||
u64 clust_off;
|
||||
@@ -547,7 +547,7 @@ static int qcow_disk_flush(struct disk_image *disk)
|
||||
struct qcow *q = disk->priv;
|
||||
struct qcow_header *header;
|
||||
struct list_head *pos, *n;
|
||||
struct qcow_table *table;
|
||||
struct qcow_l1_table *table;
|
||||
|
||||
header = q->header;
|
||||
table = &q->table;
|
||||
@@ -609,7 +609,7 @@ static struct disk_image_operations qcow_disk_ops = {
|
||||
static int qcow_read_l1_table(struct qcow *q)
|
||||
{
|
||||
struct qcow_header *header = q->header;
|
||||
struct qcow_table *table = &q->table;
|
||||
struct qcow_l1_table *table = &q->table;
|
||||
|
||||
table->table_size = header->l1_size;
|
||||
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@ struct qcow_l2_table {
|
||||
u64 table[];
|
||||
};
|
||||
|
||||
struct qcow_table {
|
||||
struct qcow_l1_table {
|
||||
u32 table_size;
|
||||
u64 *l1_table;
|
||||
};
|
||||
@@ -38,7 +38,7 @@ struct qcow_table {
|
||||
struct qcow {
|
||||
pthread_mutex_t mutex;
|
||||
void *header;
|
||||
struct qcow_table table;
|
||||
struct qcow_l1_table table;
|
||||
int fd;
|
||||
|
||||
/* Level2 caching data structures */
|
||||
|
||||
Reference in New Issue
Block a user