ext4: consolidate checks for resize of bigalloc into ext4_resize_begin
authorJosh Triplett <josh@joshtriplett.org>
Mon, 7 Jun 2021 19:15:08 +0000 (12:15 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 Jun 2021 14:22:36 +0000 (10:22 -0400)
commite9f9f61d0cdcb7f0b0b5feb2d84aa1c5894751f3
treee3528f44a11d573a30ca88c6d7f53ebfe5c7bc79
parent310c097c2bdbea253d6ee4e064f3e65580ef93ac
ext4: consolidate checks for resize of bigalloc into ext4_resize_begin

Two different places checked for attempts to resize a filesystem with
the bigalloc feature. Move the check into ext4_resize_begin, which both
places already call.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Link: https://lore.kernel.org/r/bee03303d999225ecb3bfa5be8576b2f4c6edbe6.1623093259.git.josh@joshtriplett.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ioctl.c
fs/ext4/resize.c