From: Yongqiang Yang Date: Wed, 14 Dec 2011 02:51:55 +0000 (-0500) Subject: ext4: avoid potential hang in mpage_submit_io() when blocksize < pagesize X-Git-Tag: v3.2-rc6~16^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a79a4741d37fda2fbafb953f0f301dc007928f;p=pandora-kernel.git ext4: avoid potential hang in mpage_submit_io() when blocksize < pagesize If there is an unwritten but clean buffer in a page and there is a dirty buffer after the buffer, then mpage_submit_io does not write the dirty buffer out. As a result, da_writepages loops forever. This patch fixes the problem by checking dirty flag. Signed-off-by: Yongqiang Yang Signed-off-by: "Theodore Ts'o" Cc: stable@kernel.org --- Reading git-diff-tree failed