From: Yan Zheng Date: Wed, 21 Jan 2009 15:49:16 +0000 (-0500) Subject: Btrfs: Fix infinite loop in btrfs_extent_post_op X-Git-Tag: v2.6.29-rc4~9^2~20^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7be515b1f4569aac601170fc681741434cca92;p=pandora-kernel.git Btrfs: Fix infinite loop in btrfs_extent_post_op btrfs_extent_post_op calls finish_current_insert and del_pending_extents. They both may enter infinite loops. finish_current_insert enters infinite loop if it only finds some backrefs to update. The fix is to check for pending backref updates before restarting the loop. The infinite loop in del_pending_extents is due to a the skipped variable not being properly reset before looping around. Signed-off-by: Yan Zheng --- Reading git-diff-tree failed