[Sheepdog] [PATCH] sheepdog: remove unused function nr_chunks

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Apr 30 09:33:28 CEST 2010


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 block/sheepdog.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/block/sheepdog.c b/block/sheepdog.c
index 785d990..ed7e0f6 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1130,12 +1130,6 @@ static void sd_release(BlockDriverState *bs)
 		eprintf("%s, %s\n", sd_strerror(rsp->result), s->name);
 }
 
-static inline int nr_chunks(struct sd_aiocb *acb)
-{
-	return (((acb->sector_num + acb->nb_sectors) * 512) / SD_DATA_OBJ_SIZE) -
-		(acb->sector_num * 512 / SD_DATA_OBJ_SIZE) + 1;
-}
-
 static void sd_write_done(struct sd_aiocb *acb)
 {
 	int ret, i;
-- 
1.5.6.5




More information about the sheepdog mailing list