Btrfs: fix infinite loop in btrfs_shrink_device()
authorIlya Dryomov <idryomov@gmail.com>
Tue, 27 Mar 2012 14:09:18 +0000 (17:09 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 27 Mar 2012 14:09:18 +0000 (17:09 +0300)
If relocate of block group 0 fails with ENOSPC we end up infinitely
looping because key.offset -= 1 statement in that case brings us back to
where we started.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

No differences found