]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix corruption when online resizing a fs with 1K block size
authorMaarten ter Huurne <maarten@treewalker.org>
Mon, 17 Jun 2013 13:06:01 +0000 (09:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 Jun 2013 13:06:01 +0000 (09:06 -0400)
commitfe141a4dc2bfb26352cb92c09cc94c7201dec05c
tree19ec1e28280d212f63e7df7b416af6ac7a8d18de
parent5816613bd6f91f46c39991ceb68a0592895365fa
ext4: fix corruption when online resizing a fs with 1K block size

Subtracting the number of the first data block places the superblock
backups one block too early, corrupting the file system. When the block
size is larger than 1K, the first data block is 0, so the subtraction
has no effect and no corruption occurs.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/resize.c