diff options
author | Yongqiang Yang <xiaoqiangnk@gmail.com> | 2012-09-05 07:25:50 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-09-05 07:25:50 +0200 |
commit | 6df935ad2fced9033ab52078825fcaf6365f34b7 (patch) | |
tree | 1a012bbdb5cc787896df233ed667e8897cbe99a0 /fs/ext4/page-io.c | |
parent | ext4: report the original old blocks count in a debug message when resizing (diff) | |
download | linux-6df935ad2fced9033ab52078825fcaf6365f34b7.tar.xz linux-6df935ad2fced9033ab52078825fcaf6365f34b7.zip |
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
Diffstat (limited to 'fs/ext4/page-io.c')
0 files changed, 0 insertions, 0 deletions