From: Ilya Dryomov Date: Tue, 27 Mar 2012 14:09:18 +0000 (+0300) Subject: Btrfs: fix infinite loop in btrfs_shrink_device() X-Git-Tag: v3.4-rc1~22^2~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213e64da90d14537cd63f7090d6c4d1fcc75d9f8;p=pandora-kernel.git 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: Ilya Dryomov --- Reading git-diff-tree failed