From: Jan Kara Date: Sat, 6 Jul 2013 01:57:22 +0000 (-0400) Subject: ext4: silence warning in ext4_writepages() X-Git-Tag: v3.11-rc2~27^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d7c4ed1f7dfa3fc462e870dc60a4c9c2253f3e;p=pandora-kernel.git ext4: silence warning in ext4_writepages() The loop in mpage_map_and_submit_extent() is guaranteed to always run at least once since the caller of mpage_map_and_submit_extent() makes sure map->m_len > 0. So make that explicit using do-while instead of pure while which also silences the compiler warning about uninitialized 'err' variable. Signed-off-by: Jan Kara Signed-off-by: "Theodore Ts'o" Reviewed-by: Lukas Czerner --- Reading git-diff-tree failed