ext4: use more strict checks for inodes_per_block on mount
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Nov 2016 18:28:30 +0000 (13:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:13 +0000 (10:40 +0100)
commit01772f4683a9f92a06b3d2467c0084df2a512f35
treeceb73ea764ba642bc47638d8ff42d291dfd4b51d
parentb493c715cdce57c803413e635e19f34f96041430
ext4: use more strict checks for inodes_per_block on mount

commit cd6bb35bf7f6d7d922509bf50265383a0ceabe96 upstream.

Centralize the checks for inodes_per_block and be more strict to make
sure the inodes_per_block_group can't end up being zero.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c