]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix endless loop in balancing block groups
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 31 Aug 2016 23:43:33 +0000 (16:43 -0700)
committerDavid Sterba <dsterba@suse.com>
Thu, 1 Sep 2016 15:16:47 +0000 (17:16 +0200)
commit2f9678d8de2f3482694bca213b1e7955bb38a8a4
treea1a6ffb52cf194aa5593f848a665ae9bf7fa4c5f
parentf393f0c28a64a8550d9a1593d73ae4b92ad2d2b2
Btrfs: fix endless loop in balancing block groups

Qgroup function may overwrite the saved error 'err' with 0
in case quota is not enabled, and this ends up with a
endless loop in balance because we keep going back to balance
the same block group.

It really should use 'ret' instead.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c