mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Skip disk cache statistics for mapping holes
This commit is contained in:
parent
bcfd2734b6
commit
149b408c38
1 changed files with 1 additions and 1 deletions
|
|
@ -553,7 +553,7 @@ static void io_refresh_thread(struct snapraid_io* io)
|
|||
|
||||
if (worker->parity_handle)
|
||||
io->state->parity[worker->parity_handle->level].cached_blocks = cached;
|
||||
else
|
||||
else if (worker->handle->disk) /* mapping holes have no disk statistics */
|
||||
worker->handle->disk->cached_blocks = cached;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue