aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2014-06-22 12:30:09 +0000
committerDavid Sterba <[email protected]>2016-04-28 08:36:54 +0000
commit6719afdcf808b38145095b2e485c0f90bfc29722 (patch)
treea677091790f4d82d1a0be567187b193ae428ab63 /fs/btrfs/dev-replace.c
parentbtrfs: remove save_error_info() (diff)
downloadkernel-6719afdcf808b38145095b2e485c0f90bfc29722.tar.gz
kernel-6719afdcf808b38145095b2e485c0f90bfc29722.zip
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 <[email protected]> Reviewed-and-Tested-by: Miao Xie <[email protected]> [ the compilation warning has been fixed by other patch, now we want to clean up the function ] Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions