Re: [PATCH] Btrfs: Refactor btrfs_lock_cluster() to kill compiler warning

2014-06-23 Thread Miao Xie
On Sun, 22 Jun 2014 14:30:09 +0200, Geert Uytterhoeven wrote: > 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) { ... }", >

Re: [PATCH] Btrfs: Refactor btrfs_lock_cluster() to kill compiler warning

2014-06-23 Thread Miao Xie
On Sun, 22 Jun 2014 14:30:09 +0200, Geert Uytterhoeven wrote: 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

[PATCH] Btrfs: Refactor btrfs_lock_cluster() to kill compiler warning

2014-06-22 Thread Geert Uytterhoeven
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

[PATCH] Btrfs: Refactor btrfs_lock_cluster() to kill compiler warning

2014-06-22 Thread Geert Uytterhoeven
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