From 76f4a1e072033c98e4b7430a59929d7896064e83 Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 8 Aug 2010 13:24:31 +0200 Subject: modify variable name and comment of block_dev_rw. --- libdde_linux26/lib/src/mach_glue/block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libdde_linux26/lib/src/mach_glue/block.c b/libdde_linux26/lib/src/mach_glue/block.c index ea44d87f..3820712c 100644 --- a/libdde_linux26/lib/src/mach_glue/block.c +++ b/libdde_linux26/lib/src/mach_glue/block.c @@ -17,11 +17,11 @@ struct block_device *open_block_dev (char *name, int part, fmode_t mode) return ERR_PTR(-ENXIO); } -/* write a piece of data to a block device. +/* read or write a piece of data to a block device. * DATA must be in one page. * SECTORNR: the writing location in sectors. */ int block_dev_rw (struct block_device *dev, int sectornr, - char *data, int count, int rw, void (*write_done (int err))) + char *data, int count, int rw, void (*done (int err))) { int err = 0; struct bio *bio; @@ -30,7 +30,7 @@ int block_dev_rw (struct block_device *dev, int sectornr, void end_bio (struct bio *bio, int err) { - write_done (err); + done (err); } assert (count <= PAGE_SIZE); -- cgit v1.2.3