ia64/xen-unstable

changeset 14064:4e50678c364c

linux: Use hard tabs and Linux coding style.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Feb 21 20:03:56 2007 +0000 (2007-02-21)
parents b010e556fe2c
children eb190b1faa52
files linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c linux-2.6-xen-sparse/drivers/xen/blkback/common.h linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c	Wed Feb 21 19:58:58 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c	Wed Feb 21 20:03:56 2007 +0000
     1.3 @@ -491,11 +491,10 @@ static void dispatch_rw_block_io(blkif_t
     1.4  	for (i = 0; i < nbio; i++)
     1.5  		submit_bio(operation, biolist[i]);
     1.6  
     1.7 -        if (operation == READ) {
     1.8 -                blkif->st_rd_sect += preq.nr_sects;
     1.9 -        } else if (operation == WRITE) {
    1.10 -                blkif->st_wr_sect += preq.nr_sects;
    1.11 -        }
    1.12 +	if (operation == READ)
    1.13 +		blkif->st_rd_sect += preq.nr_sects;
    1.14 +	else if (operation == WRITE)
    1.15 +		blkif->st_wr_sect += preq.nr_sects;
    1.16  
    1.17  	return;
    1.18  
     2.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/common.h	Wed Feb 21 19:58:58 2007 +0000
     2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/common.h	Wed Feb 21 20:03:56 2007 +0000
     2.3 @@ -88,8 +88,8 @@ typedef struct blkif_st {
     2.4  	int                 st_wr_req;
     2.5  	int                 st_oo_req;
     2.6  	int                 st_br_req;
     2.7 -        int                 st_rd_sect;
     2.8 -        int                 st_wr_sect;
     2.9 +	int                 st_rd_sect;
    2.10 +	int                 st_wr_sect;
    2.11  
    2.12  	wait_queue_head_t waiting_to_free;
    2.13  
     3.1 --- a/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Wed Feb 21 19:58:58 2007 +0000
     3.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Wed Feb 21 20:03:56 2007 +0000
     3.3 @@ -1407,11 +1407,10 @@ static void dispatch_rw_block_io(blkif_t
     3.4  	wmb(); /* blktap_poll() reads req_prod_pvt asynchronously */
     3.5  	info->ufe_ring.req_prod_pvt++;
     3.6  
     3.7 -	if (operation == READ) {
     3.8 +	if (operation == READ)
     3.9  		blkif->st_rd_sect += nr_sects;
    3.10 -	} else if (operation == WRITE) {
    3.11 +	else if (operation == WRITE)
    3.12  		blkif->st_wr_sect += nr_sects;
    3.13 -	}
    3.14  
    3.15  	return;
    3.16