Skip to content
Commit 213e64da authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

Btrfs: fix infinite loop in btrfs_shrink_device()



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: default avatarIlya Dryomov <idryomov@gmail.com>
parent 5eb56d25
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment