[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [PATCH] kcopyd.c : Remove redundant calls to calc_block_sizes()



The calls to calc_block_sizes() in kcopyd_write_pages() and kcopyd_copy() are
redundant, since kcopyd_io() already calls calc_block_sizes().

--- linux-2.4.20a/drivers/md/kcopyd.c	2003/01/09 15:25:48
+++ linux-2.4.20b/drivers/md/kcopyd.c	2003/01/09 16:08:11
@@ -710,7 +710,6 @@
 
 	memcpy(&job->disk, &info->to, sizeof(job->disk));
 	job->offset = offset;
-	calc_block_sizes(job);
 	job->callback = page_write_complete;
 	job->context = info;
 
@@ -751,7 +750,6 @@
 	memcpy(&job->disk, from, sizeof(*from));
 
 	job->offset = 0;
-	calc_block_sizes(job);
 	job->callback = copy_write;
 	job->context = info;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]