mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Adds an explicative comment about dead code.
This commit is contained in:
parent
7ad4d26e0c
commit
70bbf2596f
1 changed files with 3 additions and 0 deletions
3
scan.c
3
scan.c
|
|
@ -162,6 +162,9 @@ static void scan_file_remove(struct snapraid_state* state, struct snapraid_disk*
|
|||
struct snapraid_deleted* deleted;
|
||||
|
||||
/* adjust the first free position */
|
||||
/* note that doing all the deletions before alllocations, */
|
||||
/* first_free_block is always 0 and the "if" is never triggered */
|
||||
/* but we keep this code anyway for completeness. */
|
||||
if (disk->first_free_block > block_pos)
|
||||
disk->first_free_block = block_pos;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue