From: Yongqiang Yang Date: Wed, 5 Sep 2012 05:25:50 +0000 (-0400) Subject: ext4: don't copy non-existent gdt blocks when resizing X-Git-Tag: v3.7-rc1~91^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df935ad2fced9033ab52078825fcaf6365f34b7;p=pandora-kernel.git ext4: don't copy non-existent gdt blocks when resizing The resize code was copying blocks at the beginning of each block group in order to copy the superblock and block group descriptor table (gdt) blocks. This was, unfortunately, being done even for block groups that did not have super blocks or gdt blocks. This is a complete waste of perfectly good I/O bandwidth, to skip writing those blocks for sparse bg's. Signed-off-by: Yongqiang Yang Signed-off-by: "Theodore Ts'o" Cc: stable@vger.kernel.org --- Reading git-diff-tree failed