Re: [PATCH v2] btrfs: Refactor count handling in btrfs_unpin_free_ino()

From: David Sterba
Date: Fri Jun 22 2018 - 05:38:07 EST


On Fri, Jun 22, 2018 at 09:18:29AM +0200, Geert Uytterhoeven wrote:
> With gcc 4.1.2:
>
> fs/btrfs/inode-map.c: In function âbtrfs_unpin_free_inoâ:
> fs/btrfs/inode-map.c:241: warning: âcountâ may be used uninitialized in this function
>
> While this warning is a false-positive, it can easily be killed by
> refactoring the code.
>
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> ---
> Please review. Compile-tested only.

Reviewed-by: David Sterba <dsterba@xxxxxxxx>