]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: growfs: don't read garbage for new secondary superblocks
authorDave Chinner <dchinner@redhat.com>
Tue, 9 Oct 2012 03:50:52 +0000 (14:50 +1100)
committerBen Myers <bpm@sgi.com>
Thu, 8 Nov 2012 17:08:57 +0000 (11:08 -0600)
commit64ba458f6d48ddf15e8ad07f4007d4b382d205bf
treeb3ad6c5011d31cb72e770259a2a22889b962b2fc
parentf3b8708e6872359306f7122d7c719343e8ae5cae
xfs: growfs: don't read garbage for new secondary superblocks

When updating new secondary superblocks in a growfs operation, the
superblock buffer is read from the newly grown region of the
underlying device. This is not guaranteed to be zero, so violates
the underlying assumption that the unused parts of superblocks are
zero filled. Get a new buffer for these secondary superblocks to
ensure that the unused regions are zero filled correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_fsops.c