xen/blkback: Report VBD_WSECT (wr_sect) properly.
[pandora-kernel.git] / drivers / block / xen-blkback / blkback.c
index 184b133..c15c559 100644 (file)
@@ -776,7 +776,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
 
        if (operation == READ)
                blkif->st_rd_sect += preq.nr_sects;
-       else if (operation == WRITE || operation == WRITE_FLUSH)
+       else if (operation & WRITE)
                blkif->st_wr_sect += preq.nr_sects;
 
        return 0;