]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't copy non-existent gdt blocks when resizing
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 5 Sep 2012 05:25:50 +0000 (01:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Sep 2012 05:25:50 +0000 (01:25 -0400)
commitc52b5ceefc4d1a07d69680727d01b683869f3ba8
tree1a012bbdb5cc787896df233ed667e8897cbe99a0
parent41ccf62677150e3314a7daae6be0699a9f59e946
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 <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/resize.c