]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Rename 'struct qcow_table' to 'struct qcow_l1_table'
authorPekka Enberg <penberg@kernel.org>
Sun, 24 Jul 2011 09:02:34 +0000 (12:02 +0300)
committerPekka Enberg <penberg@kernel.org>
Sun, 24 Jul 2011 09:02:34 +0000 (12:02 +0300)
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>
tools/kvm/disk/qcow.c
tools/kvm/include/kvm/qcow.h

index bffd4b63401ae4666e52d4f73327115a0240ed76..7ee4af10c2ebb96fb8f522706f7872b63a72d780 100644 (file)
@@ -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;
 
index ec9c77db4325c7afb21dfd2074bc39c8b187e10a..7e06e1095e698d11b8138269de1880ae7b87249e 100644 (file)
@@ -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 */