Removes duplicate code introducing block_is_enabled().

This commit is contained in:
Andrea Mazzoleni 2014-12-29 19:11:03 +01:00
parent 2b4e6694ce
commit 47c2165f63
3 changed files with 92 additions and 119 deletions

View file

@ -775,7 +775,7 @@ close_and_continue:
/**
* Check if we have to process the specified block index ::i.
*/
static int block_is_enabled(struct snapraid_state* state, unsigned i, struct snapraid_handle* handle, unsigned diskmax)
static int block_is_enabled(struct snapraid_state* state, block_off_t i, struct snapraid_handle* handle, unsigned diskmax)
{
int one_tocheck;
snapraid_info info;