From: Jan Kara Date: Thu, 30 Oct 2014 14:53:17 +0000 (-0400) Subject: ext4: make ext4_ext_convert_to_initialized() return proper number of blocks X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae9e9c6aeea6f91ccb4fb369d7dd8f1a8b5f6a58;p=pandora-kernel.git ext4: make ext4_ext_convert_to_initialized() return proper number of blocks ext4_ext_convert_to_initialized() can return more blocks than are actually allocated from map->m_lblk in case where initial part of the on-disk extent is zeroed out. Luckily this doesn't have serious consequences because the caller currently uses the return value only to unmap metadata buffers. Anyway this is a data corruption/exposure problem waiting to happen so fix it. Coverity-id: 1226848 Signed-off-by: Jan Kara Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed