ext4: fix online resizing for bigalloc file systems with a 1k block size
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Sep 2018 02:25:01 +0000 (22:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 10:06:06 +0000 (03:06 -0700)
commitba48e66e3f53b30dd6f5785eaa658b9919d3e07c
tree56dc7306d2cab471d65b49f7833b43e1521883b7
parent6a4d7b584d3831bd4d01850d5afe97fa64b363e8
ext4: fix online resizing for bigalloc file systems with a 1k block size

commit 5f8c10936fab2b69a487400f2872902e597dd320 upstream.

An online resize of a file system with the bigalloc feature enabled
and a 1k block size would be refused since ext4_resize_begin() did not
understand s_first_data_block is 0 for all bigalloc file systems, even
when the block size is 1k.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/resize.c