Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6719afdc authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David Sterba
Browse files

Btrfs: Refactor btrfs_lock_cluster() to kill compiler warning



fs/btrfs/extent-tree.c: In function ‘btrfs_lock_cluster’:
fs/btrfs/extent-tree.c:6399: warning: ‘used_bg’ may be used uninitialized in this function

  - Replace "again: ... goto again;" by standard C "while (1) { ... }",
  - Move block not processed during the first iteration of the loop to the
    end of the loop, which allows to kill the "locked" variable,

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-and-Tested-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
[ the compilation warning has been fixed by other patch, now we want to
  clean up the function ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 0713d90c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment