Re: [PATCH] f2fs: Keep alloc_valid_block_count in sync

From: Chao Yu
Date: Tue Jul 10 2018 - 02:18:40 EST


On 2018/7/10 11:32, Daniel Rosenberg wrote:
> If we attempt to request more blocks than we have room for, we try to
> instead request as much as we can, however, alloc_valid_block_count
> is not decremented to match the new value, allowing it to drift higher
> until the next checkpoint. This always decrements it when the requested
> amount cannot be fulfilled.
>
> Signed-off-by: Daniel Rosenberg <drosen@xxxxxxxxxx>

Good catch, thanks for the fixing. :)

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,