diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-06-22 16:30:09 +0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-04-28 11:36:54 +0300 |
commit | 6719afdcf808b38145095b2e485c0f90bfc29722 (patch) | |
tree | a677091790f4d82d1a0be567187b193ae428ab63 /fs/btrfs/volumes.h | |
parent | 0713d90c75745dc6148f6346d490e9ef63a4e8b4 (diff) | |
download | linux-6719afdcf808b38145095b2e485c0f90bfc29722.tar.xz |
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: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-and-Tested-by: Miao 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: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions