]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
block: Removed unused function bdrv_write_sync
authorFrediano Ziglio <freddy77@gmail.com>
Wed, 27 Jul 2011 18:12:00 +0000 (20:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 1 Aug 2011 10:10:29 +0000 (12:10 +0200)
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h

diff --git a/block.c b/block.c
index 8859f9b414b1e484c93c5777c783cafadc060456..4c66b2cf40ae4f7dc4e643a5ba268a63dc334d2f 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1110,19 +1110,6 @@ int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,
     return 0;
 }
 
-/*
- * Writes to the file and ensures that no writes are reordered across this
- * request (acts as a barrier)
- *
- * Returns 0 on success, -errno in error cases.
- */
-int bdrv_write_sync(BlockDriverState *bs, int64_t sector_num,
-    const uint8_t *buf, int nb_sectors)
-{
-    return bdrv_pwrite_sync(bs, BDRV_SECTOR_SIZE * sector_num,
-        buf, BDRV_SECTOR_SIZE * nb_sectors);
-}
-
 /**
  * Truncate file to 'offset' bytes (needed only for file protocols)
  */
diff --git a/block.h b/block.h
index 59cc410e3b1915b2944445824cbabe4cc22f96fd..e672bc669ac4f1b0d3851c1eb8b5d452c3076031 100644 (file)
--- a/block.h
+++ b/block.h
@@ -85,8 +85,6 @@ int bdrv_pwrite(BlockDriverState *bs, int64_t offset,
                 const void *buf, int count);
 int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,
     const void *buf, int count);
-int bdrv_write_sync(BlockDriverState *bs, int64_t sector_num,
-    const uint8_t *buf, int nb_sectors);
 int bdrv_truncate(BlockDriverState *bs, int64_t offset);
 int64_t bdrv_getlength(BlockDriverState *bs);
 int64_t bdrv_get_allocated_file_size(BlockDriverState *bs);