From: Yan Zheng Date: Fri, 7 Aug 2009 17:51:33 +0000 (-0400) Subject: Btrfs: fix balancing oops when invalidate_inode_pages2 returns EBUSY X-Git-Tag: v2.6.31-rc6~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceab36edd3d3ad3ffd01d41d6d1e05ac1ff8357e;p=pandora-kernel.git Btrfs: fix balancing oops when invalidate_inode_pages2 returns EBUSY invalidate_inode_pages2_range may return -EBUSY occasionally which results Oops. This patch fixes the issue by moving invalidate_inode_pages2_range into a loop and keeping calling it until the return value is not -EBUSY. The EBUSY return is temporary, and can happen when the btrfs release page function is unable to release a page because the EXTENT_LOCK bit is set. Signed-off-by: Yan Zheng Signed-off-by: Chris Mason --- Reading git-diff-tree failed